Skip to content

Commit

Permalink
chore: Update friendsofphp/php-cs-fixer to 3.43.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mitelg committed Dec 29, 2023
1 parent ce5d3e8 commit bf41786
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function getTemplate()
}

/**
* @param \Shopware\Bundle\SearchBundle\FacetResultInterface[] $facetResults
* @param FacetResultInterface[] $facetResults
*/
public function setFacetResults(array $facetResults)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private function addCriteriaParts(
/**
* @param array[] $data
*
* @return \Shopware\Bundle\StoreFrontBundle\Struct\BaseProduct[]
* @return BaseProduct[]
*/
private function createProducts(array $data): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function setSelected($selected)
}

/**
* @return \Shopware\Bundle\StoreFrontBundle\Struct\Media|null
* @return Media|null
*/
public function getMedia()
{
Expand Down
4 changes: 2 additions & 2 deletions engine/Shopware/Components/Routing/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Context implements JsonSerializable
protected $baseFile = 'shopware.php';

/**
* @see \Enlight_Controller_Request_Request::getHttpHost
* @see EnlightRequest::getHttpHost
*
* @var string
*/
Expand Down Expand Up @@ -90,7 +90,7 @@ class Context implements JsonSerializable
/**
* Module keys for retrieving module from params
*
* @see \Enlight_Controller_Request_Request::$_moduleKey
* @see EnlightRequest::$_moduleKey
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion engine/Shopware/Components/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function route(EnlightRequest $request)
* Sets a global parameter.
*
* @see \Shopware_Controllers_Backend_Newsletter::initMailing
* @see \Enlight_Controller_Router::setGlobalParam
* @see EnlightRouter::setGlobalParam
*
* @param string $name
* @param string $value
Expand Down
6 changes: 3 additions & 3 deletions engine/Shopware/Models/Article/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Unit extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Article\Detail>
* @var ArrayCollection<Detail>
*
* @ORM\OneToMany(targetEntity="Shopware\Models\Article\Detail", mappedBy="unit")
*/
Expand Down Expand Up @@ -119,15 +119,15 @@ public function getName()
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Article\Detail>
* @return ArrayCollection<Detail>
*/
public function getArticles()
{
return $this->articles;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Article\Detail>|null $articles
* @param ArrayCollection<Detail>|null $articles
*/
public function setArticles($articles)
{
Expand Down
4 changes: 2 additions & 2 deletions engine/Shopware/Models/Country/Area.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Area extends ModelEntity
* The countries property is the inverse side of the association between area and countries.
* The association is joined over the area id field and the areaID field of the country.
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Country\Country>
* @var ArrayCollection<Country>
*
* @ORM\OneToMany(targetEntity="Shopware\Models\Country\Country", mappedBy="area", orphanRemoval=true, cascade={"persist"})
*/
Expand Down Expand Up @@ -121,7 +121,7 @@ public function getActive()
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Country\Country>
* @return ArrayCollection<Country>
*/
public function getCountries()
{
Expand Down
40 changes: 23 additions & 17 deletions engine/Shopware/Models/Plugin/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Shopware\Components\Model\ModelEntity;
use Shopware\Models\Config\Form;
use Shopware\Models\Emotion\Library\Component;
use Shopware\Models\Menu\Menu;
use Shopware\Models\Payment\Payment;
use Shopware\Models\Shop\Template;
use Shopware\Models\Widget\Widget;

/**
* @ORM\Table(name="s_core_plugins")
Expand All @@ -36,7 +42,7 @@
class Plugin extends ModelEntity
{
/**
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Emotion\Library\Component>
* @var ArrayCollection<Component>
*
* @ORM\OneToMany(targetEntity="Shopware\Models\Emotion\Library\Component", mappedBy="plugin", orphanRemoval=true, cascade={"all"})
*/
Expand Down Expand Up @@ -222,7 +228,7 @@ class Plugin extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Config\Form>
* @var ArrayCollection<Form>
*
* @ORM\OneToMany(targetEntity="\Shopware\Models\Config\Form", mappedBy="plugin", cascade={"all"})
* @ORM\JoinColumn(name="id", referencedColumnName="plugin_id")
Expand All @@ -233,7 +239,7 @@ class Plugin extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Menu\Menu>
* @var ArrayCollection<Menu>
*
* @ORM\OneToMany(targetEntity="\Shopware\Models\Menu\Menu", mappedBy="plugin", cascade={"all"})
* @ORM\JoinColumn(name="id", referencedColumnName="pluginID")
Expand All @@ -244,7 +250,7 @@ class Plugin extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Payment\Payment>
* @var ArrayCollection<Payment>
*
* @ORM\OneToMany(targetEntity="\Shopware\Models\Payment\Payment", mappedBy="plugin", cascade={"all"})
* @ORM\JoinColumn(name="id", referencedColumnName="pluginID")
Expand All @@ -255,7 +261,7 @@ class Plugin extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Shop\Template>
* @var ArrayCollection<Template>
*
* @ORM\OneToMany(targetEntity="\Shopware\Models\Shop\Template", mappedBy="plugin", cascade={"all"})
* @ORM\JoinColumn(name="id", referencedColumnName="plugin_id")
Expand All @@ -266,7 +272,7 @@ class Plugin extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Widget\Widget>
* @var ArrayCollection<Widget>
*
* @ORM\OneToMany(targetEntity="\Shopware\Models\Widget\Widget", mappedBy="plugin", cascade={"all"})
* @ORM\JoinColumn(name="id", referencedColumnName="plugin_id")
Expand All @@ -275,7 +281,7 @@ class Plugin extends ModelEntity
private $widgets;

/**
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Plugin\License>
* @var ArrayCollection<License>
*
* @ORM\OneToMany(targetEntity="Shopware\Models\Plugin\License", mappedBy="plugin")
* @ORM\OrderBy({"type" = "ASC"})
Expand Down Expand Up @@ -571,79 +577,79 @@ public function setLink($link)
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Config\Form>
* @return ArrayCollection<Form>
*/
public function getConfigForms()
{
return $this->configForms;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Config\Form> $configForms
* @param ArrayCollection<Form> $configForms
*/
public function setConfigForms($configForms)
{
$this->configForms = $configForms;
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Menu\Menu>
* @return ArrayCollection<Menu>
*/
public function getMenuItems()
{
return $this->menuItems;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Menu\Menu> $menuItems
* @param ArrayCollection<Menu> $menuItems
*/
public function setMenuItems($menuItems)
{
$this->menuItems = $menuItems;
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Payment\Payment>
* @return ArrayCollection<Payment>
*/
public function getPayments()
{
return $this->payments;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Payment\Payment> $payments
* @param ArrayCollection<Payment> $payments
*/
public function setPayments($payments)
{
$this->payments = $payments;
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Shop\Template>
* @return ArrayCollection<Template>
*/
public function getTemplates()
{
return $this->templates;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Shop\Template> $templates
* @param ArrayCollection<Template> $templates
*/
public function setTemplates($templates)
{
$this->templates = $templates;
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Plugin\License>
* @return ArrayCollection<License>
*/
public function getLicenses()
{
return $this->licenses;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Plugin\License> $licenses
* @param ArrayCollection<License> $licenses
*/
public function setLicenses($licenses)
{
Expand Down
6 changes: 3 additions & 3 deletions engine/Shopware/Models/Voucher/Voucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Voucher extends ModelEntity
/**
* INVERSE SIDE
*
* @var \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Voucher\Code>
* @var ArrayCollection<Code>
*
* @ORM\OneToMany(targetEntity="Shopware\Models\Voucher\Code", mappedBy="voucher", orphanRemoval=true, cascade={"persist"})
*/
Expand Down Expand Up @@ -651,15 +651,15 @@ public function getTaxConfig()
}

/**
* @return \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Voucher\Code>
* @return ArrayCollection<Code>
*/
public function getCodes()
{
return $this->codes;
}

/**
* @param \Doctrine\Common\Collections\ArrayCollection<\Shopware\Models\Voucher\Code>|array|null $codes
* @param ArrayCollection<Code>|array|null $codes
*
* @return Voucher
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class HasPseudoPriceConditionCustomerGroupTest extends TestCase
protected Converter $converter;

/**
* @var \Shopware\Models\Article\Configurator\Group[]
* @var Group[]
*/
private array $groups = [];

Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "3.42.0",
"friendsofphp/php-cs-fixer": "3.43.1",
"kubawerlos/php-cs-fixer-custom-fixers": "3.17.1"
},
"sort-packages": true
Expand Down
16 changes: 8 additions & 8 deletions vendor-bin/cs-fixer/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf41786

Please sign in to comment.