Passed
Branch master (acde85)
by Alexander
01:40
created

Wallets::_prepareToRender()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace B2Binpay\Payment\Block\Adminhtml\Form\Field;
4
5
/**
6
 * Wallets Adminhtml frontend model
7
 */
8
class Wallets extends \Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray
0 ignored issues
show
Bug introduced by
The type Magento\Config\Block\Sys...rray\AbstractFieldArray was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected function _prepareToRender()
14
    {
15
        $this->addColumn('wallet', ['label' => __('Wallet ID'), 'class' => 'required-entry b2binpay-wallet']);
0 ignored issues
show
Bug introduced by
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        $this->addColumn('wallet', ['label' => /** @scrutinizer ignore-call */ __('Wallet ID'), 'class' => 'required-entry b2binpay-wallet']);
Loading history...
16
        $this->addColumn('currency', ['label' => __('Currency [store]'), 'class' => 'required-entry']);
17
        $this->_addAfter = false;
0 ignored issues
show
Bug Best Practice introduced by
The property _addAfter does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
18
        $this->_addButtonLabel = __('Add Wallet');
0 ignored issues
show
Bug Best Practice introduced by
The property _addButtonLabel does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
19
    }
20
}
21