Issues (384)

src/Writer/Head/Plac.php (2 issues)

Labels
1
<?php
2
/**
3
 * php-gedcom.
4
 *
5
 * php-gedcom is a library for parsing, manipulating, importing and exporting
6
 * GEDCOM 5.5 files in PHP 5.3+.
7
 *
8
 * @author          Xiang Ming <[email protected]>
9
 * @copyright       Copyright (c) 2010-2013, Xiang Ming
10
 * @license         MIT
11
 *
12
 * @link            http://github.com/mrkrstphr/php-gedcom
13
 */
14
15
namespace Gedcom\Writer\Head;
16
17
class Plac
18
{
19
    /**
20
     * @param string $format
21
     * @param int    $level
22
     *
23
     * @return string
24
     */
25
    public static function convert(\Gedcom\Record\Head\Plac &$plac, $level)
26
    {
27
        $output = $level." PLAC \n";
28
29
        // level up
30
        $level++;
31
        // FORM
32
        $form = $plac->getForm();
0 ignored issues
show
The method getForm() does not exist on Gedcom\Record\Head\Plac. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

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

32
        /** @scrutinizer ignore-call */ 
33
        $form = $plac->getForm();
Loading history...
33
        if ($form) {
34
            $output .= $level.' FORM '.$form."\n";
0 ignored issues
show
Are you sure $form of type Gedcom\Record\Head\Plac|mixed can be used in concatenation? ( Ignorable by Annotation )

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

34
            $output .= $level.' FORM './** @scrutinizer ignore-type */ $form."\n";
Loading history...
35
        }
36
37
        return $output;
38
    }
39
}
40