Showing 4 of 4 total issues
Conversation
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Conversation extends BaseModel
{
protected $table = ConfigurationManager::CONVERSATIONS_TABLE;
protected $fillable = ['data', 'direct_message'];
protected $casts = [
Method up
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function up()
{
Schema::create(ConfigurationManager::CONVERSATIONS_TABLE, function (Blueprint $table) {
$table->bigIncrements('id');
$table->boolean('private')->default(true);
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data)
Method send
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function send(Conversation $conversation, string $body, Participation $participant, string $type = 'text', array $data = []): Model