Skip to content

Commit 29da4d2

Browse files
authored
ENGCOM-4332: Applied PHP-CS-Fixer for code cleanup. #21347
2 parents d030d5b + d68a1ba commit 29da4d2

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

app/code/Magento/Marketplace/Block/Partners.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
namespace Magento\Marketplace\Block;
88

99
/**
10+
* Partners section block.
11+
*
1012
* @api
1113
* @since 100.0.2
1214
*/
@@ -39,7 +41,7 @@ public function __construct(
3941
/**
4042
* Gets partners
4143
*
42-
* @return bool|string
44+
* @return array
4345
*/
4446
public function getPartners()
4547
{

app/code/Magento/PageCache/Model/Cache/Server.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Zend\Uri\Uri;
1313
use Zend\Uri\UriFactory;
1414

15+
/**
16+
* Cache server model.
17+
*/
1518
class Server
1619
{
1720
/**
@@ -62,8 +65,7 @@ public function getUris()
6265
foreach ($configuredHosts as $host) {
6366
$servers[] = UriFactory::factory('')
6467
->setHost($host['host'])
65-
->setPort(isset($host['port']) ? $host['port'] : self::DEFAULT_PORT)
66-
;
68+
->setPort(isset($host['port']) ? $host['port'] : self::DEFAULT_PORT);
6769
}
6870
} elseif ($this->request->getHttpHost()) {
6971
$servers[] = UriFactory::factory('')->setHost($this->request->getHttpHost())->setPort(self::DEFAULT_PORT);

app/code/Magento/PageCache/Model/System/Config/Backend/AccessList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function beforeSave()
2828
throw new LocalizedException(
2929
new Phrase(
3030
'Access List value "%1" is not valid. '
31-
.'Please use only IP addresses and host names.',
31+
. 'Please use only IP addresses and host names.',
3232
[$value]
3333
)
3434
);

app/code/Magento/PageCache/Model/Varnish/VclGenerator.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Magento\PageCache\Model\VclGeneratorInterface;
1010
use Magento\PageCache\Model\VclTemplateLocatorInterface;
1111

12+
/**
13+
* Varnish vcl generator model.
14+
*/
1215
class VclGenerator implements VclGeneratorInterface
1316
{
1417
/**
@@ -119,7 +122,7 @@ private function getReplacements()
119122
private function getRegexForDesignExceptions()
120123
{
121124
$result = '';
122-
$tpl = "%s (req.http.user-agent ~ \"%s\") {\n"." hash_data(\"%s\");\n"." }";
125+
$tpl = "%s (req.http.user-agent ~ \"%s\") {\n" . " hash_data(\"%s\");\n" . " }";
123126

124127
$expressions = $this->getDesignExceptions();
125128

@@ -143,7 +146,8 @@ private function getRegexForDesignExceptions()
143146

144147
/**
145148
* Get IPs access list that can purge Varnish configuration for config file generation
146-
* and transform it to appropriate view
149+
*
150+
* Tansform it to appropriate view
147151
*
148152
* acl purge{
149153
* "127.0.0.1";
@@ -157,7 +161,7 @@ private function getTransformedAccessList()
157161
$result = array_reduce(
158162
$this->getAccessList(),
159163
function ($ips, $ip) use ($tpl) {
160-
return $ips.sprintf($tpl, trim($ip)) . "\n";
164+
return $ips . sprintf($tpl, trim($ip)) . "\n";
161165
},
162166
''
163167
);
@@ -216,6 +220,8 @@ private function getSslOffloadedHeader()
216220
}
217221

218222
/**
223+
* Get design exceptions array.
224+
*
219225
* @return array
220226
*/
221227
private function getDesignExceptions()

0 commit comments

Comments
 (0)