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\Head;
class Date
{
* @param string $format
* @param int $level
* @return string
public static function convert(\Gedcom\Record\Head\Date &$date, $level)
$output = '';
$_date = $date->getDate();
getDate()
Gedcom\Record\Head\Date
__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 ($_date) {
$output .= $level.' DATE '.$_date."\n";
$_date
Gedcom\Record\Head\Date|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";
} else {
return $output;
}
// level up
$level++;
// Time
$time = $date->getTime();
getTime()
if ($time) {
$output .= $level.' TIME '.$time."\n";
$time
$output .= $level.' TIME './** @scrutinizer ignore-type */ $time."\n";