Skip to content

Commit d31d651

Browse files
author
Kopylova,Olga(okopylova)
committed
Merge pull request #287 from magento-ogre/MAGETWO-47301-PHP7-Integration-Test-Syntax
[Ogres] PHP7 fix
2 parents b8a2b71 + f717ecf commit d31d651

File tree

15 files changed

+27
-19
lines changed

15 files changed

+27
-19
lines changed

app/code/Magento/Authorizenet/Test/Unit/Model/DirectpostTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function testCheckResponseCodeFailure($responseCode)
331331
$this->dataHelperMock->expects($this->any())
332332
->method('wrapGatewayError')
333333
->with($reasonText)
334-
->willReturn(__('Gateway error: ' . $reasonText));
334+
->willReturn(__('Gateway error: %1', $reasonText));
335335

336336
$this->directpost->checkResponseCode();
337337
}

app/code/Magento/Backend/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ YTD,YTD
306306
"Maximum sender name length is 255. Please correct your settings.","Maximum sender name length is 255. Please correct your settings."
307307
"The file you're uploading exceeds the server size limit of %1 kilobytes.","The file you're uploading exceeds the server size limit of %1 kilobytes."
308308
"The base directory to upload file is not specified.","The base directory to upload file is not specified."
309-
"The specified image adapter cannot be used because of: ","The specified image adapter cannot be used because of: "
309+
"The specified image adapter cannot be used because of: %1","The specified image adapter cannot be used because of: %1"
310310
"Default scope","Default scope"
311311
"Base currency","Base currency"
312312
"Display default currency","Display default currency"

app/code/Magento/Checkout/view/frontend/web/template/billing-address.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77
<div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()">
88
<input type="checkbox" name="billing-address-same-as-shipping" data-bind="checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + $parent.getCode()}"/>
9-
<label data-bind="i18n: 'My billing and shipping address are the same', attr: {for: 'billing-address-same-as-shipping-' + $parent.getCode()}"></label>
9+
<label data-bind="attr: {for: 'billing-address-same-as-shipping-' + $parent.getCode()}"><span data-bind="i18n: 'My billing and shipping address are the same'"></span></label>
1010
</div>
1111

1212
<!-- ko template: 'Magento_Checkout/billing-address/details' --><!-- /ko -->

app/code/Magento/Config/Model/Config/Backend/Image/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function beforeSave()
5353
try {
5454
$this->_imageFactory->create($this->getValue());
5555
} catch (\Exception $e) {
56-
$message = __('The specified image adapter cannot be used because of: ' . $e->getMessage());
56+
$message = __('The specified image adapter cannot be used because of: %1', $e->getMessage());
5757
throw new \Magento\Framework\Exception\LocalizedException($message);
5858
}
5959

app/code/Magento/Config/Model/Config/Compiler/IncludeElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ protected function getContent($includePath)
112112
return $directoryRead->readFile($path);
113113
}
114114

115-
throw new LocalizedException(__('The file "' . $path . '" does not exist'));
115+
throw new LocalizedException(__('The file "%1" does not exist', $path));
116116
}
117117
}

app/code/Magento/Cookie/Model/Config/Backend/Domain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function beforeSave()
5050

5151
// Empty value is treated valid and will be handled when read the value out
5252
if (!empty($value) && !$this->configValidator->isValid($value)) {
53-
$msg = __('Invalid domain name: ' . join('; ', $this->configValidator->getMessages()));
53+
$msg = __('Invalid domain name: %1', join('; ', $this->configValidator->getMessages()));
5454
throw new \Magento\Framework\Exception\LocalizedException($msg);
5555
}
5656
}

app/code/Magento/Cookie/Model/Config/Backend/Lifetime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function beforeSave()
4949
$value = $this->getValue();
5050

5151
if (!empty($value) && !$this->configValidator->isValid($value)) {
52-
$msg = __('Invalid cookie lifetime: ' . join('; ', $this->configValidator->getMessages()));
52+
$msg = __('Invalid cookie lifetime: %1', join('; ', $this->configValidator->getMessages()));
5353
throw new \Magento\Framework\Exception\LocalizedException($msg);
5454
}
5555
return parent::beforeSave();

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public function getBackend()
497497
}
498498
$backend = $this->_universalFactory->create($this->getBackendModel());
499499
if (!$backend) {
500-
throw new LocalizedException(__('Invalid backend model specified: ' . $this->getBackendModel()));
500+
throw new LocalizedException(__('Invalid backend model specified: %1', $this->getBackendModel()));
501501
}
502502
$this->_backend = $backend->setAttribute($this);
503503
}

app/code/Magento/Eav/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Letters,Letters
7171
"Invalid default decimal value","Invalid default decimal value"
7272
"Invalid default date","Invalid default date"
7373
"Invalid entity supplied","Invalid entity supplied"
74-
"Invalid backend model specified: ","Invalid backend model specified: "
74+
"Invalid backend model specified: %1","Invalid backend model specified: %1"
7575
"Source model ""%1"" not found for attribute ""%2""","Source model ""%1"" not found for attribute ""%2"""
7676
"The value of attribute ""%1"" must be unique","The value of attribute ""%1"" must be unique"
7777
"Invalid date","Invalid date"

app/code/Magento/Email/Model/Template/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ public function applyInlineCss($html)
920920
!== false
921921
) {
922922
throw new \Magento\Framework\Exception\MailException(
923-
__('<pre>' . PHP_EOL . $cssToInline . PHP_EOL . '</pre>')
923+
__('<pre> %1 </pre>', PHP_EOL . $cssToInline . PHP_EOL)
924924
);
925925
}
926926

0 commit comments

Comments
 (0)