diff --git a/app/Console/Commands/Finances/CorpFinances.php b/app/Console/Commands/Finances/CorpFinances.php deleted file mode 100644 index 4b6271864..000000000 --- a/app/Console/Commands/Finances/CorpFinances.php +++ /dev/null @@ -1,78 +0,0 @@ -SetStartStatus(); - - //Setup the Finances container - $finance = new FinanceHelper(); - - //Get the corporations who have registered for structure markets - $structures = CorpMarketStructure::all(); - - foreach($structures as $structure) { - $pages = $finance->GetJournalPageCount(1, $structure->character_id); - - for($i = 1; $i <= $pages; $i++) { - $job = new JobProcessCorpJournal; - $job->division = 1; - $job->charId = $structure->character_id; - $job->corpId = $structure->corporation_id; - $job->page = $i; - ProcessCorpJournalJob::dispatch($job)->onQueue('journal'); - } - } - - //mark the job as finished - $task->SetStopStatus(); - } -} diff --git a/app/Library/Finances/CorpMarketTax.php b/app/Library/Finances/CorpMarketTax.php deleted file mode 100644 index c511c489c..000000000 --- a/app/Library/Finances/CorpMarketTax.php +++ /dev/null @@ -1,63 +0,0 @@ - $journal['id']])->exists()) { - $entry = new CorpMarketJournal; - $entry->id = $journal['id']; - $entry->corporation_id = $corpId; - $entry->division = $division; - if(isset($journal['amount'])) { - $entry->amount = $journal['amount']; - } - if(isset($journal['balance'])) { - $entry->balance = $journal['balance']; - } - if(isset($journal['context_id'])) { - $entry->context_id = $journal['context_id']; - } - if(isset($journal['context_id_type'])) { - $entry->context_id_type = $journal['context_id_type']; - } - $entry->date = $esiHelper->DecodeDate($journal['date']); - $entry->description = $journal['description']; - if(isset($journal['first_party_id'])) { - $entry->first_party_id = $journal['first_party_id']; - } - if(isset($journal['reason'])) { - $entry->reason = $journal['reason']; - } - $entry->ref_type = $journal['ref_type']; - if(isset($journal['second_party_id'])) { - $entry->second_party_id = $journal['second_party_id']; - } - if(isset($journal['tax'])) { - $entry->tax = $journal['tax']; - } - if(isset($journal['tax_receiver_id'])) { - $entry->tax_receiver_id = $journal['tax_receiver_id']; - } - $entry->save(); - } - } -} - -?> \ No newline at end of file diff --git a/app/Library/Taxes/TaxesHelper.php b/app/Library/Taxes/TaxesHelper.php index 1197f4eb3..12e6baf18 100644 --- a/app/Library/Taxes/TaxesHelper.php +++ b/app/Library/Taxes/TaxesHelper.php @@ -13,11 +13,9 @@ use App\Models\Finances\ReprocessingTaxJournal; use App\Models\Finances\StructureIndustryTaxJournal; use App\Models\Finances\PlanetProductionTaxJournal; use App\Models\Finances\OfficeFeesJournal; -use App\Models\Finances\CorpMarketJournal; use App\Models\Finances\JumpBridgeJournal; use App\Models\Finances\PISaleJournal; use App\Models\Finances\AllianceMarketJournal; -use App\Models\Finances\CorpMarketStructure; use App\Models\SRP\SRPShip; class TaxesHelper { @@ -68,17 +66,6 @@ class TaxesHelper { return $revenue; } - public function GetStructureMarketGross($start, $end, $corpId) { - $revenue = 0.00; - - $revenue = CorpMarketJournal::where([ - 'second_party_id' => $corpId, - ])->whereBetween('date', [$start, $end]) - ->sum('amount'); - - return $revenue; - } - public function GetJumpGateGross($start, $end) { $revenue = 0.00; diff --git a/app/Models/Finances/CorpMarketJournal.php b/app/Models/Finances/CorpMarketJournal.php deleted file mode 100644 index d718ae3a6..000000000 --- a/app/Models/Finances/CorpMarketJournal.php +++ /dev/null @@ -1,41 +0,0 @@ -apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; } /** @@ -377,7 +377,7 @@ class ClassLoader $subPath = $class; while (false !== $lastPos = strrpos($subPath, '\\')) { $subPath = substr($subPath, 0, $lastPos); - $search = $subPath.'\\'; + $search = $subPath . '\\'; if (isset($this->prefixDirsPsr4[$search])) { $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); foreach ($this->prefixDirsPsr4[$search] as $dir) {