Skip to content

Commit 738bf47

Browse files
committed
[TASK]-Code imporovements
1 parent b88dcf0 commit 738bf47

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

dev/tests/integration/testsuite/Magento/Cookie/Model/Config/Backend/DomainTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class DomainTest extends TestCase
2525
public function testBeforeSave($value, $exceptionMessage = null)
2626
{
2727
/** @var $domain Domain */
28-
$domain = Bootstrap::getObjectManager()->create(
29-
Domain::class
30-
);
28+
$domain = Bootstrap::getObjectManager()->create(Domain::class);
3129
$domain->setValue($value);
3230
$domain->setPath('path');
3331
try {

lib/internal/Magento/Framework/Session/Config/Validator/CookieDomainValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function isValid($value)
2727
return false;
2828
}
2929

30-
//Hostname validator allows [;,] and returns the validator as true but these are unacceptable cookie domain
31-
//characters hence need explicit validation for the same
30+
//Hostname validator allows [;,] and returns the validator as true but,
31+
//these are unacceptable cookie domain characters hence need explicit validation for the same
3232
if (preg_match('/[;,]/', $value)) {
3333
$this->_addMessages(['invalid character in cookie domain']);
3434

0 commit comments

Comments
 (0)