Plac   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A read() 0 7 2
1
<?php
2
3
namespace FamilyTree365\LaravelGedcom\Utils\Importer\Indi\Even;
4
5
class Plac
6
{
7
    /**
8
     * Array of persons ID
9
     * key - old GEDCOM ID
10
     * value - new autoincrement ID.
11
     *
12
     * @var string
13
     */
14
    public static function read($conn, $place)
0 ignored issues
show
Unused Code introduced by
The parameter $conn is not used and could be removed. ( Ignorable by Annotation )

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

14
    public static function read(/** @scrutinizer ignore-unused */ $conn, $place)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
    {
16
        if (is_object($place)) {
17
            $place = $place->getPlac();
18
        }
19
20
        return $place;
21
    }
22
}
23