Showing 536 of 536 total issues
Avoid using short method names like AlterProjectsDescriptionNullable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'projects',
function (Blueprint $table) {
- 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 AlterProjectsDropDescription::up(). The configured minimum method name length is 3. Open
public function up()
{
auth()->loginUsingId(1);
foreach (Project::all() as $project) {
$version = $project->versions->last();
- 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 AlterVersionsAddSizeOfZip::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'versions',
function (Blueprint $table) {
- 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 AddDownloadCounterToProjects::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'projects',
function (Blueprint $table) {
- 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 AlterProjectsAddStatus::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'projects',
function (Blueprint $table) {
- 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 CreateBadgeProjectTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create(
'badge_project',
function (Blueprint $table) {
- 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 CreateBadgesTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create(
'badges',
function (Blueprint $table) {
- 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 CreateProjectDependenciesPivotTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create(
'dependencies',
function (Blueprint $table) {
- 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 AlterFilesContentBlobToMediumblob::up(). The configured minimum method name length is 3. Open
public function up()
{
if (!in_array(config('database.default'), ['sqlite', 'sqlite_testing'])) {
DB::statement('ALTER TABLE `files` MODIFY `content` MEDIUMBLOB');
}
- 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 AddCommandsToBadgeTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('badges', function (Blueprint $table) {
$table->text('commands')->nullable()->after('constraints');
});
- 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 AlterWarningsMakeDescriptionLong::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'warnings',
function (Blueprint $table) {
- 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 AddGitFieldToProjects::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('projects', function (Blueprint $table) {
$table->string('git')->nullable()->after('slug');
});
- 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 CreateJobsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create('jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue')->index();
- 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 AddGitCommitIdToVersionsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('versions', function (Blueprint $table) {
$table->string('git_commit_id')->nullable()->after('size_of_zip');
});
- 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 AddGoogle2faStuffToUsersTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('google2fa_enabled')->default(false)->after('editor');
$table->text('google2fa_secret')->nullable()->after('google2fa_enabled');
- 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 CreateProjectUserTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::create('project_user', function (Blueprint $table) {
$table->bigIncrements('id');
$table->integer('user_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 AddMissingForeignKeys::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'badge_project',
function (Blueprint $table) {
- 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 AlterProjectsAddTypeEnum::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table(
'projects',
function (Blueprint $table) {
- 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 AddConstraintsToBadgeTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('badges', function (Blueprint $table) {
$table->text('constraints')->nullable()->after('slug');
});
- 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 AddMinFirmwareMaxFirmwareToProjectsTable::up(). The configured minimum method name length is 3. Open
public function up()
{
Schema::table('projects', function (Blueprint $table) {
$table->unsignedInteger('min_firmware')->nullable()->after('slug');
$table->unsignedInteger('max_firmware')->nullable()->after('min_firmware');
- 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
}
}