Passed
Push — developer ( 3f9034...c0f71b )
by Radosław
17:01
created

NameField   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRelatedTableName() 0 3 1
1
<?php
2
/**
3
 * Name query inventory field file.
4
 *
5
 * @package UIType
6
 *
7
 * @copyright YetiForce S.A.
8
 * @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author Radosław Skrzypczak <[email protected]>
10
 */
11
12
declare(strict_types=1);
13
14
namespace App\Conditions\QueryFields\Inventory;
15
16
/**
17
 * Name query inventory field class.
18
 */
19
class NameField extends ReferenceField
20
{
21
	/** {@inheritdoc} */
22
	public function getRelatedTableName(): array
23
	{
24
		return $this->getRelatedTables($this->fieldModel->getModules(), $this->fieldModel->getName());
0 ignored issues
show
Bug introduced by
The method getModules() does not exist on Vtiger_Basic_InventoryField. Did you maybe mean getModuleName()? ( Ignorable by Annotation )

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

24
		return $this->getRelatedTables($this->fieldModel->/** @scrutinizer ignore-call */ getModules(), $this->fieldModel->getName());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
25
	}
26
}
27