for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of laravel-quota
*
* (c) David Faith <[email protected]>
* Full copyright and license information is available
* in the LICENSE file distributed with this source code.
*/
namespace Projectmentor\Quota\Console\Commands;
use Illuminate\Console\Command;
use DB;
class TruncateQuotaLog extends Command
{
* The name and signature of the console command.
* @var string
protected $signature = 'quota:truncate';
* The console command description.
protected $description = 'Truncate the quotalog table.';
* Create a new command instance.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return mixed
public function handle()
DB::table('quotalog')->delete();
This check marks files that end in a newline character, i.e. an empy line.
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.