for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* php-gedcom.
*
* php-gedcom is a library for parsing, manipulating, importing and exporting
* GEDCOM 5.5 files in PHP 5.3+.
* @author Xiang Ming <[email protected]>
* @copyright Copyright (c) 2010-2013, Xiang Ming
* @license MIT
* @link http://github.com/mrkrstphr/php-gedcom
*/
namespace PhpGedcom\Writer\Head;
class Char
{
* @param \PhpGedcom\Record\Head\Char $char
* @param string $format
* @param int $level
* @return string
public static function convert(\PhpGedcom\Record\Head\Char &$char, $level)
$output = '';
// char
$_char = $char->getChar();
getChar()
PhpGedcom\Record\Head\Char
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
if ($_char) {
$output .= $level.' CHAR '.$_char."\n";
$_char
PhpGedcom\Record\Head\Char|mixed
concatenation
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
$output .= $level.' CHAR './** @scrutinizer ignore-type */ $_char."\n";
} else {
return $output;
}
// level up
$level++;
// VERS
$vers = $char->getVersion();
getVersion()
if ($vers) {
$output .= $level.' VERS '.$vers."\n";
$vers
$output .= $level.' VERS './** @scrutinizer ignore-type */ $vers."\n";