File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
app/code/Magento/PageCache
Model/System/Config/Backend
Test/Unit/Model/System/Config/Backend Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2018 Adobe
4+ * All Rights Reserved .
55 */
66
77declare (strict_types=1 );
@@ -18,6 +18,7 @@ class AccessList extends Varnish
1818{
1919 /**
2020 * @inheritDoc
21+ * @return $this|\Magento\Framework\Model\AbstractModel
2122 */
2223 public function beforeSave ()
2324 {
@@ -30,7 +31,8 @@ public function beforeSave()
3031 if (!preg_match ('/^[\w\.\-\:]+(\/(?:[0-9]|[12][0-9]|3[0-2]))?$/ ' , trim ($ item ))) {
3132 throw new LocalizedException (
3233 new Phrase (
33- 'Access List value "%1" is not valid because of item "%2". Please use only IP addresses and host names. ' ,
34+ 'Access List value "%1" is not valid because of item "%2".
35+ Please use only IP addresses and host names. ' ,
3436 [$ value , $ item ]
3537 )
3638 );
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2018 Adobe
4+ * * All Rights Reserved .
55 */
66
77declare (strict_types=1 );
You can’t perform that action at this time.
0 commit comments