Skip to content

Commit

Permalink
Remove phpcs needless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayn93 committed Mar 14, 2024
1 parent 7cedda3 commit d357194
Show file tree
Hide file tree
Showing 50 changed files with 0 additions and 201 deletions.
4 changes: 0 additions & 4 deletions src/Controller/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ class Router implements RouterInterface
{
public const FRONT_NAME = 'fact-finder';

/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly ActionFactory $actionFactory)
{
}
Expand Down
5 changes: 0 additions & 5 deletions src/Cron/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ class Feed
{
private const PATH_CONFIGURABLE_CRON_IS_ENABLED = 'factfinder/configurable_cron/ff_cron_enabled';

/**
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ScopeConfigInterface $scopeConfig,
private readonly StoreManagerInterface $storeManager,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/BasicAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ class BasicAuth
private const CONFIG_PATH_USERNAME = 'factfinder/basic_auth_data_transfer/ff_upload_url_user';
private const CONFIG_PATH_PASSWORD = 'factfinder/basic_auth_data_transfer/ff_upload_url_password';

/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly ScopeConfigInterface $scopeConfig)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/AttributeValuesExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

class AttributeValuesExtractor
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly FilterInterface $filter,
private readonly NumberFormatter $numberFormatter,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

class DataProvider implements DataProviderInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly Products $products,
private readonly ObjectManagerInterface $objectManager,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/ExportPreviewDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

class ExportPreviewDataProvider implements DataProviderInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ExportPreviewProducts $products,
private readonly ObjectManagerInterface $objectManager,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/ExportPreviewProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
#[AllowDynamicProperties]
class ExportPreviewProducts implements \IteratorAggregate
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ProductRepositoryInterface $productRepository,
private readonly RequestInterface $request,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/FieldProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ class FieldProvider implements FieldProviderInterface
private ?array $cachedFields;
private ?array $cachedVariantFields;

/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ExportConfig $config,
private readonly GenericFieldFactory $fieldFactory,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/ProductField/GenericField.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#[AllowDynamicProperties]
class GenericField implements FieldInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ProductAttributeRepositoryInterface $attributeRepository,
private readonly AttributeValuesExtractor $valuesExtractor,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/ProductField/ProductImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class ProductImage implements FieldInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ImageHelper $imageHelper,
private readonly string $imageId = 'ff_export_image_url',
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/ProductType/SimpleDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

class SimpleDataProvider implements DataProviderInterface, ExportEntityInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
protected Product $product,
protected NumberFormatter $numberFormatter,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Catalog/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

class Products implements \IteratorAggregate
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ProductRepositoryInterface $productRepository,
private readonly SearchCriteriaBuilder $searchCriteriaBuilder,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Category/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

class Categories implements IteratorAggregate
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly SearchCriteriaBuilder $searchCriteriaBuilder,
private readonly StoreManagerInterface $storeManager,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Category/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class Category implements ExportEntityInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly CategoryInterface $category,
private readonly array $categoryFields,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Category/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

class DataProvider implements DataProviderInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly Categories $categories,
private readonly CategoryFactory $categoryFactory,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Category/Field/ParentCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class ParentCategory implements FieldInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly CategoryPathFormatter $categoryPathFormatter)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Cms/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

class DataProvider implements DataProviderInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly Pages $pages,
private readonly PageFactory $pageFactory,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Cms/Field/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

class Content implements FieldInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly Filter $filter)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Cms/Field/Deeplink.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

class Deeplink implements FieldInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly UrlInterface $urlBuilder,
private readonly StoreManagerInterface $storeManager,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Cms/Field/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

class Image implements FieldInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly Filter $filter)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Cms/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class Page implements ExportEntityInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly PageInterface $page,
private readonly array $pageFields = [],
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Cms/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@

class Pages implements \IteratorAggregate
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly PageRepositoryInterface $pageRepository,
private readonly SearchCriteriaBuilder $searchCriteriaBuilder,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
*/
class Feed
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ExporterInterface $exporter,
private readonly DataProviderInterface $dataProvider,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Export/FeedFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class FeedFactory
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ObjectManagerInterface $objectManager,
private readonly array $feedPool
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

class Exporter implements ExporterInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly FilterInterface $filter)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/FieldRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ class FieldRoles
{
private const PATH_PRODUCT_FIELD_ROLE = 'factfinder/general/tracking_product_number_field_role';

/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly SerializerInterface $serializer,
private readonly ScopeConfigInterface $scopeConfig,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Filesystem/Io/SftpPublicKeyAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

class SftpPublicKeyAuth extends SftpBase
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly Filesystem $fileSystem,
private readonly FtpConfig $uploadConfig,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Formatter/CategoryPathFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

class CategoryPathFormatter
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly CategoryRepositoryInterface $categoryRepository)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/SessionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

class SessionData implements SectionSourceInterface, ParametersSourceInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly CustomerSession $customerSession,
private readonly ScopeConfigInterface $scopeConfig,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Ssr/PriceFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

class PriceFormatter
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly CommunicationConfig $communicationConfig,
private readonly PriceCurrencyInterface $priceCurrency,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Ssr/SearchAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

class SearchAdapter
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly ClientBuilder $clientBuilder,
private readonly CommunicationConfig $communicationConfig,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Ssr/Template/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class Engine implements TemplateEngineInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly Mustache $engine)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Ssr/Template/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

class Filter implements FilterInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly FieldRoles $fieldRoles)
{
}
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Ssr/Template/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class Loader implements Mustache_Loader
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly Mustache_Loader $loader,
private readonly FilterInterface $filter,
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Stream/Csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ class Csv implements StreamInterface
{
private ?WriteInterface $stream;

/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(
private readonly Filesystem $filesystem,
private readonly string $filename = 'factfinder/export.csv'
Expand Down
4 changes: 0 additions & 4 deletions src/Model/Stream/Stdout.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class Stdout implements StreamInterface
{
/**
* phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
* phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
*/
public function __construct(private readonly DriverInterface $file)
{
}
Expand Down
Loading

0 comments on commit d357194

Please sign in to comment.