Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Block/Adminhtml/System/Config/Fieldset/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function _getFrontendClass($element)
/**
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings("PHPMD.NPathComplexity")
*/
protected function _getHeaderTitleHtml($element)
{
Expand Down Expand Up @@ -77,7 +77,7 @@ protected function _getHeaderTitleHtml($element)
/**
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
protected function _getHeaderCommentHtml($element)
{
Expand All @@ -87,7 +87,7 @@ protected function _getHeaderCommentHtml($element)
/**
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return false
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
protected function _isCollapseState($element)
{
Expand All @@ -97,7 +97,7 @@ protected function _isCollapseState($element)
/**
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
protected function _getExtraJs($element)
{
Expand Down
2 changes: 1 addition & 1 deletion Block/Onepage/ContinueCvv.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ContinueCvv extends Template
private $checkoutSession;

/**
* @var CustomerSession\
* @var CustomerSession
*/
private $customerSession;

Expand Down
2 changes: 1 addition & 1 deletion Controller/Data/GetPostPlaceOrderData.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function execute()
$result = $this->resultFactory->create(ResultFactory::TYPE_JSON);

try {
/** @var $payment \Magento\Sales\Model\Order\Payment */
/** @var \Magento\Sales\Model\Order\Payment $payment */
$payment = $this->checkoutSession->getLastRealOrder()->getPayment();
$paymentInformation = $payment->getAdditionalInformation();
if (is_array($paymentInformation) &&
Expand Down
2 changes: 1 addition & 1 deletion Plugin/Block/Widget/Button/ToolbarPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ToolbarPlugin
/**
* Before Push Button Plugin change url for accept payment and deny payment for PayU payment methods
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function beforePushButtons(ToolbarInterface $subject, AbstractBlock $context, ButtonList $buttonList): void
{
Expand Down
6 changes: 3 additions & 3 deletions view/frontend/templates/account/storedcards.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/**
* View for stored cards in my account
*
* @var \Payu\PaymentGateway\Block\Account\StoredCards $this
* @var \PayU\PaymentGateway\Block\Account\StoredCards $block
* @var \Magento\Framework\Escaper $escaper
*/
?>
<?php
$storedCards = $this->getStoredCards();
$storedCards = $block->getStoredCards();
?>
<div class="block block-payu-cards payu__cards">
<div class="block-content payu-cards__wrapper">
Expand Down Expand Up @@ -41,7 +41,7 @@ $storedCards = $this->getStoredCards();
</td>
<td class="col card__action">
<form action="<?= $escaper->escapeHtml(
$this->getUrl('customer/account/deletestoredcard/')
$block->getUrl('customer/account/deletestoredcard/')
);
?>" method="post">
<?php echo $block->getBlockHtml('formkey') ?>
Expand Down
6 changes: 3 additions & 3 deletions view/frontend/templates/checkout/continueccv.phtml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* @var \Payu\PaymentGateway\Block\Onepage\ContinueCvv|\Payu\PaymentGateway\Block\Order\Repay\ContinueCvv $this
* @var \PayU\PaymentGateway\Block\Onepage\ContinueCvv|\PayU\PaymentGateway\Block\Order\Repay\ContinueCvv $block
*/
?>
<?php
$widgetConfig = $this->getWidgetCvvConfig();
$widgetConfig = $block->getWidgetCvvConfig();
if ($widgetConfig): ?>
<div class="payu-block">
<div class="payu-block__wrapper">
Expand All @@ -20,7 +20,7 @@ if ($widgetConfig): ?>
</div>
<script type="text/javascript">
window.payuConfig = {
env: "<?php echo $this->getEnv(); ?>"
env: "<?php echo $block->getEnv(); ?>"
}
</script>
<script type="text/x-magento-init">
Expand Down
1 change: 0 additions & 1 deletion view/frontend/templates/credit_widget/head_script.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ $configKey = $block->getData('configKey');
<?php if ($viewModel->isWidgetEnabled($configKey)): ?>
<script src="<?= $escaper->escapeUrl($viewModel->getScriptUrl()) ?>" type="text/javascript"></script>
<?php endif; ?>

2 changes: 1 addition & 1 deletion view/frontend/templates/order/history/payu_data.phtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/** @var \Payu\PaymentGateway\Block\Order\Grid\Action $block */
/** @var \PayU\PaymentGateway\Block\Order\Grid\Action $block */
?>
<?php $_orderId = $block->getOrder()->getEntityId() ?>
<?php if ($block->isPayuCanRepay()): ?>
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/templates/order/history/payu_header.phtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/** @var \Payu\PaymentGateway\Block\Order\Grid\Action $block */
/** @var \PayU\PaymentGateway\Block\Order\Grid\Action $block */
?>

<?php if ($block->isPayuCanRepay()): ?>
Expand Down
8 changes: 4 additions & 4 deletions view/frontend/templates/order/repay/paymentmethods.phtml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* @var \Payu\PaymentGateway\Block\Order\Repay\PaymentMethods $this
* @var \PayU\PaymentGateway\Block\Order\Repay\PaymentMethods $block
*/
?>
<?php
$config = $this->getPaymentGatewayConfig();
$cardConfig = $this->getCardPaymentGatewayConfig();
$config = $block->getPaymentGatewayConfig();
$cardConfig = $block->getCardPaymentGatewayConfig();
?>
<div class="payu-repay repay">
<div class="repay__header">
Expand Down Expand Up @@ -40,7 +40,7 @@ if (!empty($cardConfig)):
?>
<script type="text/javascript">
window.payuConfig = {
env: "<?= $this->getCardEnv(); ?>"
env: "<?= $block->getCardEnv(); ?>"
}
</script>
<script type="text/x-magento-init">
Expand Down