Showing 985 of 985 total issues
Avoid using short method names like AddNewPermissionMigrate::up(). The configured minimum method name length is 3. Open
public function up()
{
Permission::findOrCreate(ConsultationsPermissionsEnum::CONSULTATION_CHANGE_TERM, 'api');
}
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like RemoveNotUsedColumnsFromConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultations', function (Blueprint $table) {
$table->dropColumn('base_price');
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddProductColumnInConsultationUserTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultation_user', function (Blueprint $table) {
$table->bigInteger('product_id')->unsigned()->nullable();
if (Schema::hasTable('products')) {
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddPivotTableForOrderItemsAndUser::up(). The configured minimum method name length is 3. Open
public function up(): void
{
if (
Schema::hasTable('orders') &&
Schema::hasColumns('orders', ['executed_at', 'executed_status'])
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like RemoveParticipantTable::up(). The configured minimum method name length is 3. Open
public function up(): void
{
Schema::dropIfExists('consultations_participants');
}
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddConsultationIdColumnForConsultationTermsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultation_terms', function (Blueprint $table) {
$table->bigInteger('consultation_id')->unsigned()->nullable();
$table->foreign('consultation_id')->on('consultations')->references('id')->nullOnDelete();
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like RemoveRedundantColumnsFromConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->dropColumn('duration');
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like ChangeColumnsInConsultationuserTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultation_user', function (Blueprint $table) {
$table->dateTime('executed_at')->nullable();
$table->string('executed_status')->nullable();
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddShortDescInConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultations', function (Blueprint $table) {
$table->text('short_desc')->nullable();
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddMaxParticipantsOnSessionToConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->unsignedInteger('max_session_students')->default(1);
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddSenderStatusInConsultationUserTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultation_user', function (Blueprint $table) {
$table->string('reminder_status', 30)->nullable();
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddTableRelationsUsersConsultations::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create('consultation_user', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id');
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like RemoveUniqueIndexInConsultaionUserTable::up(). The configured minimum method name length is 3. Open
public function up()
{
if (DB::connection() instanceof MySqlConnection) {
DB::statement('ALTER TABLE `consultation_user` DROP INDEX `consultation_user_unique`, ADD INDEX (user_id, consultation_id)');
} else {
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like CreateConsultationCategoryTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create('category_consultation', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('consultation_id');
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like CreateConsultationProposedTermsTale::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create('consultation_proposed_terms', function (Blueprint $table) {
$table->id();
$table->bigInteger('consultation_id')->unsigned();
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddColumnImagePathForConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultations', function (Blueprint $table) {
$table->string('image_path')->nullable();
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like CreateLogotypeColumnInConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('consultations', function (Blueprint $table) {
$table->string('logotype_path')->nullable();
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like ChangeNameColumnsForConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->renameColumn('started_at', 'active_from');
$table->renameColumn('finished_at', 'active_to');
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like AddMissingsColumnToConsultationsTable::up(). The configured minimum method name length is 3. Open
public function up(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->string('duration')->nullable();
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Avoid using short method names like RemoveMissingColumns::up(). The configured minimum method name length is 3. Open
public function up(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->dropColumn('calendar_url');
});
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}