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 Kristopher Wilson <[email protected]>
* @copyright Copyright (c) 2010-2013, Kristopher Wilson
* @license MIT
* @link http://github.com/mrkrstphr/php-gedcom
*/
namespace Gedcom\Writer\Head\Sour;
class Data
{
* @param string $format
* @param int $level
* @return string
public static function convert(\Gedcom\Record\Head\Sour\Data &$data, $level)
$output = '';
$_data = $data->getData();
getData()
Gedcom\Record\Head\Sour\Data
__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 ($_data) {
$output .= $level.' DATA '.$_data."\n";
$_data
Gedcom\Record\Head\Sour\Data|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.' DATA './** @scrutinizer ignore-type */ $_data."\n";
} else {
return $output;
}
// level up
$level++;
// DATE
$date = $corp->getDate();
$corp
if ($date) {
$output .= $level.' DATE '.$date."\n";
// COPR
$corp = $corp->getCorp();
if ($corp) {
$output .= $level.' COPR '.$corp."\n";