Util   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTikaExtensionConfiguration() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApacheSolrForTypo3\Tika;
6
7
/*
8
 * This file is part of the TYPO3 CMS project.
9
 *
10
 * It is free software; you can redistribute it and/or modify it under
11
 * the terms of the GNU General Public License, either version 2
12
 * of the License, or any later version.
13
 *
14
 * For the full copyright and license information, please read the
15
 * LICENSE.txt file that was distributed with this source code.
16
 *
17
 * The TYPO3 project - inspiring people to share!
18
 */
19
20
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException;
21
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException;
22
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
23
use TYPO3\CMS\Core\Utility\GeneralUtility;
24
25
/**
26
 * Utility class for tx_tika
27
 *
28
 * (c) dkd Internet services GmbH <[email protected]>
29
 */
30
class Util
31
{
32
    /**
33
     * Returns extension configuration.
34
     *
35
     * @return array
36
     * @throws ExtensionConfigurationExtensionNotConfiguredException
37
     * @throws ExtensionConfigurationPathDoesNotExistException
38
     */
39 62
    public static function getTikaExtensionConfiguration(): array
40
    {
41 62
        return GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('tika');
42
    }
43
}
44