Skip to content

Commit 16cbf72

Browse files
ENGCOM-4332: Applied PHP-CS-Fixer for code cleanup. #21347
- Merge Pull Request #21347 from yogeshsuhagiya/magento2:2.3-develop-PR-yogesh-7 - Merged commits: 1. 974152f
2 parents 10f900e + 974152f commit 16cbf72

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
/**
4040
* Gets partners
4141
*
42-
* @return bool|string
42+
* @return array
4343
*/
4444
public function getPartners()
4545
{

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public function getUris()
6262
foreach ($configuredHosts as $host) {
6363
$servers[] = UriFactory::factory('')
6464
->setHost($host['host'])
65-
->setPort(isset($host['port']) ? $host['port'] : self::DEFAULT_PORT)
66-
;
65+
->setPort(isset($host['port']) ? $host['port'] : self::DEFAULT_PORT);
6766
}
6867
} elseif ($this->request->getHttpHost()) {
6968
$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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getReplacements()
119119
private function getRegexForDesignExceptions()
120120
{
121121
$result = '';
122-
$tpl = "%s (req.http.user-agent ~ \"%s\") {\n"." hash_data(\"%s\");\n"." }";
122+
$tpl = "%s (req.http.user-agent ~ \"%s\") {\n" . " hash_data(\"%s\");\n" . " }";
123123

124124
$expressions = $this->getDesignExceptions();
125125

@@ -157,7 +157,7 @@ private function getTransformedAccessList()
157157
$result = array_reduce(
158158
$this->getAccessList(),
159159
function ($ips, $ip) use ($tpl) {
160-
return $ips.sprintf($tpl, trim($ip)) . "\n";
160+
return $ips . sprintf($tpl, trim($ip)) . "\n";
161161
},
162162
''
163163
);

0 commit comments

Comments
 (0)