Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored and github-actions[bot] committed Feb 6, 2025
1 parent 6c677ad commit f2dc8fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/Models/Scopes/MultiPaymentTotalAmountScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function apply(Builder $builder, Model $model)
->joinSubLateral(function ($query) {
$query->selectRaw('SUM(CASE WHEN is_multipayment THEN (\'0x\' || encode(substring(transactions.data, 69 + ((tx_count + 1) * 32) + (n * 32), 32), \'hex\'))::float::numeric ELSE 0 END) as recipient_amount')
->from(DB::raw('generate_series(1, CASE WHEN is_multipayment THEN CAST(encode(SUBSTRING(transactions.data, 69 + ((tx_count + 1) * 32), 32), \'hex\') AS int) ELSE 0 END) n'));

}, 'recipient_amounts_nested', 'is_multipayment', '=', DB::raw('true'), 'left outer');
}, 'recipient_amounts', 'is_multipayment', '=', DB::raw('true'), 'left outer');
}
Expand Down

0 comments on commit f2dc8fd

Please sign in to comment.