common/migrations/db/m150318_213934_file_storage_item.php
Avoid using short method names like m150318_213934_file_storage_item::up(). The configured minimum method name length is 3. Open
Open
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB';
- 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
The class m150318_213934_file_storage_item is not named in CamelCase. Open
Open
class m150318_213934_file_storage_item extends Migration
{
public function up()
{
$tableOptions = null;
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}