removed some unused classes

This commit is contained in:
2019-12-11 22:37:06 -06:00
parent 4848ef379a
commit 32cfb6b93c
5 changed files with 0 additions and 196 deletions

View File

@@ -1,49 +0,0 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class CorpMarketMail extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'services:MarketMail';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Send a mail about a market.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
//Create the command helper container
$task = new CommandHelper('CorpMarketMail');
//Add entry into the table saying the job is starting
$task->SetStartStatus();
//Mark the job as finished
$task->SetStopStatus();
}
}

View File

@@ -1,85 +0,0 @@
<?php
namespace App\Http\Controllers\Market;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Auth;
use DB;
use Carbon\Carbon;
//Library
use App\Library\Esi\Esi;
use Seat\Eseye\Exceptions\RequestFailedException;
use App\Library\Taxes\TaxesHelper;
//Models
use App\Models\Esi\EsiToken;
use App\Models\Esi\EsiScope;
use App\Models\Finances\CorpMarketJournal;
use App\Models\Finances\CorpMarketStructure;
class MarketController extends Controller
{
public function __construct() {
$this->middleware('auth');
$this->middleware('role:User');
$this->middleware('permission:structure.market');
}
public function displayAddMarketTax() {
return view('market.add.display');
}
public function storeAddMarketTax(Request $request) {
$this->validate($request, [
'tax' => 'required',
]);
$charId = auth()->user()->getId();
//Declare the esi helper
$esiHelper = new Esi;
//Create the esi container to get the character's public information
$esi = $esiHelper->SetupEsiAuthentication();
try {
$charInfo = $esi->invoke('get', '/characters/{character_id}/', [
'character_id' => $charId,
]);
} catch(RequestExceptionFailed $e) {
return redirect('/market/add')->with('erorr', 'Failed to get character info.');
}
$ratio = $request->tax / 2.5;
$corpMarket = new CorpMarketStructure;
$corpMarket->character_id = $charId;
$corpMarket->corporation_id = $charInfo->corporation_id;
$corpMarket->tax = $request->tax;
$corpMarket->ratio = $ratio;
$corpMarket->save();
return redirect('/dahsboard')->with('success', 'Market structure recorded.');
}
public function displayTaxes() {
//Declare some variables
$esiHelper = new Esi;
$charId = auth()->user()->getId();
//Setup the esi authentication container
$esi = $esiHelper->SetupEsiAuthentication();
try {
$charInfo = $esi->invoke('get', '/characters/{character_id}/', [
'character_id' => $charId,
]);
} catch(RequestExceptionFailed $e) {
return redirect('/market/add')->with('erorr', 'Failed to get character info.');
}
//Get the total taxes from the database for each of the 3 months in the past
}
}

View File

@@ -15,8 +15,6 @@ use Seat\Eseye\Exceptions\RequestFailedException;
use App\Models\Jobs\JobProcessContracts;
use App\Models\Job\JobStatus;
use App\Models\Logistics\Contract;
use App\Models\Esi\EsiToken;
use App\Models\Esi\EsiScope;
class EveContractsHelper {

View File

@@ -1,43 +0,0 @@
<?php
namespace App\Models\Contracts;
use Illuminate\Database\Eloquent\Model;
class EveContract extends Model
{
//Table name
public $table = 'eve_contracts';
//Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'contract_id',
'acceptor_id',
'assignee_id',
'availability',
'buyout',
'collateral',
'date_accepted',
'date_completed',
'date_expired',
'date_issued',
'days_to_complete',
'end_location_id',
'for_corporation',
'issuer_corporation_id',
'issuer_id',
'price',
'reward',
'start_location_id',
'status',
'title',
'volume',
];
}

View File

@@ -1,17 +0,0 @@
<?php
namespace App\Models\Market;
use Illuminate\Database\Eloquent\Model;
class MarketOrder extends Model
{
// Table Name
protected $table = 'MarketOrders';
// Timestamps
public $timestamps = false;
// Primary Key
public $primaryKey = 'order_id';
}