Showing 83 of 114 total issues
Method execute
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
{
echo '<div class="alert alert-dismissible alert-info">Backup data </div>';
Method generateReRunForm
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function generateReRunForm()
{
$default = array(
'batch' => array(),
Method generateForm
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function generateForm()
{
$default = array(
'_username' => '',
'_password' => '',
Method configure
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure()
{
$this->setName('cashout:generate')
->setDescription('Generate the cashout operations')
->addOption(
Method execute
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
{
$batch = new Batch($this->getName());
$this->batchManager->save($batch);
Method getStatusLabel
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getStatusLabel($status)
{
switch ($status) {
case Status::WITHDRAW_FAILED:
return $this->translator->trans('withdraw.request.failed');
Method prepareAjaxRequest
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function prepareAjaxRequest($queryBuilder, $search, $custom)
{
if (!empty($search)) {
$queryBuilder->where(
Method getDefaultSettingsParams
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getDefaultSettingsParams()
{
$reRunForm = $this->generateReRunForm();
$settingsForm = $this->generateSettingsForm();
Function buildSelectAll
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildSelectAll: function() {
if (typeof this.options.selectAllValue === 'number') {
this.options.selectAllValue = this.options.selectAllValue.toString();
}
Method reRunAction
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function reRunAction(Request $request)
{
$reRunForm = $this->generateReRunForm();
$settingsForm = $this->generateSettingsForm();
Function select
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select: function(selectValues, triggerOnChange) {
if(!$.isArray(selectValues)) {
selectValues = [selectValues];
}
Method processVendors
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function processVendors()
{
$vendors = $this->vendorManager->findAll();
$logs = array();
Function buttonText
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buttonText: function(options, select) {
if (this.disabledText.length > 0
&& (select.prop('disabled') || (options.length == 0 && this.disableIfEmpty))) {
return this.disabledText;
Method prepareAjaxData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function prepareAjaxData($data)
{
foreach ($data as $key => $logRow) {
$data[$key]['startedAt'] = $logRow['startedAt']->format('Y-m-d H:i:s');
Method getCycleDate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCycleDate(array $cycleDays, DateTime $cronDate)
{
$currentDay = (int) date('j', $cronDate->getTimestamp());
$currentMonth = (int) date('n', $cronDate->getTimestamp());
$currentYear = (int) date('Y', $cronDate->getTimestamp());
Method create
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$miraklId,
$hipayId,
$login,
$statusWalletAccount,
$status,
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
LoggerInterface $logger,
CashoutInitializer $processor,
array $cycleDays,
$cycleHour,
$cycleMinute,
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$miraklId = null,
$hipayId = null,
$login = null,
$statusWalletAccount = null,
$status = null,
Function selectAll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selectAll: function (justVisible, triggerOnSelectAll) {
var justVisible = typeof justVisible === 'undefined' ? true : justVisible;
var allLis = $("li:not(.divider):not(.disabled):not(.multiselect-group)", this.$ul);
var visibleLis = $("li:not(.divider):not(.disabled):not(.multiselect-group):not(.multiselect-filter-hidden):not(.multiselect-collapisble-hidden)", this.$ul).filter(':visible');
Function deselectAll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
deselectAll: function (justVisible, triggerOnDeselectAll) {
var justVisible = typeof justVisible === 'undefined' ? true : justVisible;
var allLis = $("li:not(.divider):not(.disabled):not(.multiselect-group)", this.$ul);
var visibleLis = $("li:not(.divider):not(.disabled):not(.multiselect-group):not(.multiselect-filter-hidden):not(.multiselect-collapisble-hidden)", this.$ul).filter(':visible');