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\SourRef;
class Even
{
* @param \PhpGedcom\Record\SourRef\Even $even
* @param int $level
* @return string
public static function convert(\PhpGedcom\Record\SourRef\Even &$even, $level = 0)
$output = '';
// $_date;
$_even = $even->getEven();
getEven()
PhpGedcom\Record\SourRef\Even
__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($_even)) {
$output .= $level.' EVEN '.$_even."\n";
$_even
PhpGedcom\Record\SourRef\Even|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.' EVEN './** @scrutinizer ignore-type */ $_even."\n";
} else {
$output = $level." EVEN\n";
}
// level up
$level++;
// $_role ROLE
$_role = $data->getRole();
$data
if (!empty($_role)) {
$output .= $level.' ROLE '.$_role."\n";
return $output;