for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Translation\Entities;
use Illuminate\Support\Collection;
use Illuminate\Contracts\Support\Arrayable;
use JsonSerializable;
/**
* Class AbstractEntity.
*
* @package Core\Entities
*/
abstract class AbstractEntity implements Arrayable, JsonSerializable
{
* @inheritdoc
public function toArray(): array
return [];
}
public function jsonSerialize(): array
return $this->toArray();
* persist
* @return bool
private function persist()
persist()
This check looks for private methods that have been defined, but are not used inside the class.
$this->model::create($this->toArray());
This check looks for private methods that have been defined, but are not used inside the class.