SettingsNotFound   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of Scout Extended.
7
 *
8
 * (c) Algolia Team <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Algolia\ScoutExtended\Exceptions;
15
16
use Exception;
17
use Throwable;
18
19
final class SettingsNotFound extends Exception
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
25
    {
26
        if (empty($message)) {
27
            $message = 'Settings not found.';
28
        }
29
30
        parent::__construct($message, $code, $previous);
31
    }
32
}
33