src/Models/BookableBooking.php
BookableBooking
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class BookableBooking extends Model
{
use HasFactory;
use ValidatingTrait;
- Create a ticketCreate a ticket
TODO found Open
Open
* @TODO: implement rates, availabilites, minimum & maximum units
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $throwValidationExceptions. Keep variable name length under 20. Open
Open
protected $throwValidationExceptions = true;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}