Plac::read()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
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