Skip to content

Commit 7774d4a

Browse files
committed
Fixed static tests.
1 parent c337f10 commit 7774d4a

File tree

4 files changed

+35
-34
lines changed

4 files changed

+35
-34
lines changed

app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php

+16-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Downloadable\Model\Product\TypeHandler;
77

@@ -10,7 +10,6 @@
1010
use Magento\Downloadable\Model\ComponentInterface;
1111

1212
/**
13-
* Class Link
1413
* @api
1514
* @since 100.0.2
1615
*/
@@ -22,7 +21,7 @@ class Link extends AbstractTypeHandler
2221
private $sampleItem = [];
2322

2423
/**
25-
* @var \Magento\Downloadable\Model\ComponentInterfaceFactory
24+
* @var \Magento\Downloadable\Model\LinkFactory
2625
*/
2726
private $linkFactory;
2827

@@ -49,34 +48,37 @@ public function __construct(
4948
}
5049

5150
/**
52-
* {@inheritdoc}
51+
* @inheritdoc
5352
*/
5453
public function getDataKey()
5554
{
5655
return 'link';
5756
}
5857

5958
/**
60-
* {@inheritdoc}
59+
* @inheritdoc
6160
*/
6261
public function getIdentifierKey()
6362
{
6463
return 'link_id';
6564
}
6665

6766
/**
68-
* {@inheritdoc}
67+
* @inheritdoc
6968
*/
7069
public function save(Product $product, array $data)
7170
{
7271
parent::save($product, $data);
72+
7373
if ($product->getLinksPurchasedSeparately()) {
7474
$product->setIsCustomOptionChanged();
7575
}
76+
77+
return $this;
7678
}
7779

7880
/**
79-
* {@inheritdoc}
81+
* @inheritdoc
8082
*/
8183
protected function clear()
8284
{
@@ -86,18 +88,15 @@ protected function clear()
8688
}
8789

8890
/**
89-
* @return ComponentInterface
91+
* @inheritdoc
9092
*/
9193
protected function createItem()
9294
{
9395
return $this->linkFactory->create();
9496
}
9597

9698
/**
97-
* @param ComponentInterface $model
98-
* @param array $data
99-
* @param Product $product
100-
* @return void
99+
* @inheritdoc
101100
*/
102101
protected function setDataToModel(ComponentInterface $model, array $data, Product $product)
103102
{
@@ -125,17 +124,15 @@ protected function setDataToModel(ComponentInterface $model, array $data, Produc
125124
}
126125

127126
/**
128-
* @param ComponentInterface $model
129-
* @param Product $product
130-
* @return void
127+
* @inheritdoc
131128
*/
132129
protected function linkToProduct(ComponentInterface $model, Product $product)
133130
{
134131
$product->setLastAddedLinkId($model->getId());
135132
}
136133

137134
/**
138-
* @return void
135+
* @inheritdoc
139136
*/
140137
protected function processDelete()
141138
{
@@ -145,7 +142,7 @@ protected function processDelete()
145142
}
146143

147144
/**
148-
* {@inheritdoc}
145+
* @inheritdoc
149146
*/
150147
protected function saveItem(Product $product, array $item)
151148
{
@@ -157,9 +154,7 @@ protected function saveItem(Product $product, array $item)
157154
}
158155

159156
/**
160-
* @param ComponentInterface $model
161-
* @param array $files
162-
* @return void
157+
* @inheritdoc
163158
*/
164159
protected function setFiles(ComponentInterface $model, array $files)
165160
{

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Group.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Eav\Model\ResourceModel\Entity\Attribute;
77

@@ -156,7 +156,7 @@ public function updateDefaultGroup($attributeSetId)
156156
}
157157

158158
/**
159-
* {@inheritdoc}
159+
* @inheritdoc
160160
*/
161161
protected function saveNewObject(AbstractModel $object)
162162
{
@@ -173,7 +173,7 @@ protected function saveNewObject(AbstractModel $object)
173173
}
174174

175175
/**
176-
* {@inheritdoc}
176+
* @inheritdoc
177177
*/
178178
protected function updateObject(AbstractModel $object)
179179
{

app/code/Magento/Store/Block/Store/Switcher.php

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66

77
/**
@@ -29,15 +29,11 @@ class Switcher extends \Magento\Framework\View\Element\Template
2929
protected $_loaded = false;
3030

3131
/**
32-
* Store factory
33-
*
3432
* @var \Magento\Store\Model\StoreFactory
3533
*/
3634
protected $_storeFactory;
3735

3836
/**
39-
* Store group factory
40-
*
4137
* @var \Magento\Store\Model\GroupFactory
4238
*/
4339
protected $_storeGroupFactory;
@@ -60,7 +56,7 @@ public function __construct(
6056
}
6157

6258
/**
63-
* @return void
59+
* @inheritdoc
6460
*/
6561
protected function _construct()
6662
{
@@ -72,6 +68,8 @@ protected function _construct()
7268
}
7369

7470
/**
71+
* Load data
72+
*
7573
* @return $this
7674
*/
7775
protected function _loadData()
@@ -105,6 +103,8 @@ protected function _loadData()
105103
}
106104

107105
/**
106+
* Sets stores and returns their count
107+
*
108108
* @return int
109109
*/
110110
public function getStoreCount()
@@ -135,6 +135,8 @@ public function getStoreCount()
135135
}
136136

137137
/**
138+
* Sets languages and returns their count
139+
*
138140
* @return int
139141
*/
140142
public function getLanguageCount()
@@ -149,6 +151,8 @@ public function getLanguageCount()
149151
}
150152

151153
/**
154+
* Returns current store id
155+
*
152156
* @return int
153157
*/
154158
public function getCurrentStoreId()
@@ -157,6 +161,8 @@ public function getCurrentStoreId()
157161
}
158162

159163
/**
164+
* Returns current store code
165+
*
160166
* @return string
161167
*/
162168
public function getCurrentStoreCode()

lib/internal/Magento/Framework/HTTP/Client/Socket.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66

77
/**

0 commit comments

Comments
 (0)