for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* components
*
* @author Wolfy-J
*/
namespace Spiral\ORM\Entities;
class RelationBucket
{
* Extract relations data from given entity fields.
* @param array $data
public function extractRelations(array &$data)
$data
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
// //Fetch all relations
// $relations = array_intersect_key($data, $this->recordSchema[self::SH_RELATIONS]);
//
// foreach ($relations as $name => $relation) {
// $this->relations[$name] = $relation;
// unset($data[$name]);
// }
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.