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 Gedcom\Writer\Fam\Even;
class Husb
{
* @param \Gedcom\Record\Fam\Even\Husb $attr
* @param int $level
* @return string
public static function convert(\Gedcom\Record\Fam\Even\Husb &$husb, $level = 0)
$output = '';
$output .= $level." WIFE \n";
// level up
$level++;
// AGE
$age = $husb->getAge();
getAge()
Gedcom\Record\Fam\Even\Husb
__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 (!empty($age)) {
$output .= $level.' AGE '.$age."\n";
$age
Gedcom\Record\Fam\Even\Husb|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.' AGE './** @scrutinizer ignore-type */ $age."\n";
}
return $output;