src/Database/MongoDB/Resource.php
Method patch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function patch($resourceId, $newResource)
{
try {
if (isset($newResource->{$this->primaryKey})) {
unset($newResource->{$this->primaryKey});
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct($resourceName, $schemaClass, $primaryKey, Client $client = null, $databaseName = null)