mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-25 06:56:11 +01:00
CLEANUP: Scrutinizer issues
This commit is contained in:
parent
467a181567
commit
77555e359f
3 changed files with 9 additions and 4 deletions
|
@ -3,9 +3,9 @@ filter:
|
|||
- 'Configuration/*'
|
||||
- 'Documentation/*'
|
||||
- 'Resources/*'
|
||||
- 'Tests/*'
|
||||
paths:
|
||||
- 'Classes/*'
|
||||
- 'Tests/*'
|
||||
tools:
|
||||
|
||||
php_cpd:
|
||||
|
|
|
@ -164,7 +164,12 @@ class RelationResolver implements Singleton
|
|||
{
|
||||
foreach ($items as $item) {
|
||||
if ($item[1] === $value) {
|
||||
return LocalizationUtility::translate($item[0], '');
|
||||
$newValue = LocalizationUtility::translate($item[0], '');
|
||||
|
||||
if ($newValue === null) {
|
||||
return '';
|
||||
}
|
||||
return $newValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class TcaTableService
|
|||
protected $tableName;
|
||||
|
||||
/**
|
||||
* @var ConfigurationContaineInterfacer
|
||||
* @var ConfigurationContainerInterface
|
||||
*/
|
||||
protected $configuration;
|
||||
|
||||
|
@ -69,7 +69,7 @@ class TcaTableService
|
|||
|
||||
/**
|
||||
* @param string $tableName
|
||||
* @param ConfigurationContainer $configuration
|
||||
* @param ConfigurationContainerInterface $configuration
|
||||
*/
|
||||
public function __construct(
|
||||
$tableName,
|
||||
|
|
Loading…
Reference in a new issue