for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FamilyTree365\LaravelGedcom\Utils\Exporter\Indi;
use FamilyTree365\LaravelGedcom\Models\PersonAnci;
class Anci
{
/**
* String $anci
* String $group
* Integer $group_id.
*/
public static function read($conn, $item, $group = '', $group_id = 0, $subm_ids)
$conn
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function read(/** @scrutinizer ignore-unused */ $conn, $item, $group = '', $group_id = 0, $subm_ids)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$record = [];
foreach ($item as $anci) {
if ($anci) {
// store alia
if (isset($subm_ids[$anci])) {
$subm_id = $subm_ids[$anci];
$key = ['group'=>$group, 'gid'=>$group_id, 'anci'=>$subm_id];
$key
$data = ['group'=>$group, 'gid'=>$group_id, 'anci'=>$subm_id];
$record[] = $data;
}
PersonAnci::insert($record);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.