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\Sour\Data;
class Even
{
* @param int $level
* @return string
public static function convert(\Gedcom\Record\Sour\Data\Even &$even, $level)
$output = $level." EVEN\n";
$level++;
// $date;
$date = $even->getDate();
getDate()
Gedcom\Record\Sour\Data\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($date)) {
$output .= $level.' DATE '.$date."\n";
$date
Gedcom\Record\Sour\Data\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.' DATE './** @scrutinizer ignore-type */ $date."\n";
}
// Plac
$plac = $even->getPlac();
getPlac()
if (!empty($plac)) {
$output .= $level.' PLAC '.$plac."\n";
$plac
$output .= $level.' PLAC './** @scrutinizer ignore-type */ $plac."\n";
return $output;