mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 14:56:12 +01:00
Merge pull request #39 from DanielSiepmann/feature/cleanup
CLEANUP: Scrutinizer issues
This commit is contained in:
commit
162d8ae9bd
3 changed files with 9 additions and 4 deletions
|
@ -3,9 +3,9 @@ filter:
|
||||||
- 'Configuration/*'
|
- 'Configuration/*'
|
||||||
- 'Documentation/*'
|
- 'Documentation/*'
|
||||||
- 'Resources/*'
|
- 'Resources/*'
|
||||||
|
- 'Tests/*'
|
||||||
paths:
|
paths:
|
||||||
- 'Classes/*'
|
- 'Classes/*'
|
||||||
- 'Tests/*'
|
|
||||||
tools:
|
tools:
|
||||||
|
|
||||||
php_cpd:
|
php_cpd:
|
||||||
|
|
|
@ -164,7 +164,12 @@ class RelationResolver implements Singleton
|
||||||
{
|
{
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
if ($item[1] === $value) {
|
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;
|
protected $tableName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ConfigurationContaineInterfacer
|
* @var ConfigurationContainerInterface
|
||||||
*/
|
*/
|
||||||
protected $configuration;
|
protected $configuration;
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class TcaTableService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $tableName
|
* @param string $tableName
|
||||||
* @param ConfigurationContainer $configuration
|
* @param ConfigurationContainerInterface $configuration
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
$tableName,
|
$tableName,
|
||||||
|
|
Loading…
Reference in a new issue