@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | // Add any advanced criteria |
| 71 | 71 | $advancedCriteria = $this->argument('criteria'); |
| 72 | - if (! empty($advancedCriteria)) { |
|
| 72 | + if (!empty($advancedCriteria)) { |
|
| 73 | 73 | $criteria = array_merge($criteria, $advancedCriteria); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -90,14 +90,14 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | // Show confirmation unless force flag is set |
| 93 | - if (! $force) { |
|
| 93 | + if (!$force) { |
|
| 94 | 94 | $this->warn('You are about to delete releases matching the following criteria:'); |
| 95 | 95 | foreach ($criteria as $criterion) { |
| 96 | 96 | $this->line(" - {$criterion}"); |
| 97 | 97 | } |
| 98 | 98 | $this->newLine(); |
| 99 | 99 | |
| 100 | - if (! $this->confirm('Are you sure you want to proceed with the deletion?')) { |
|
| 100 | + if (!$this->confirm('Are you sure you want to proceed with the deletion?')) { |
|
| 101 | 101 | $this->info('Operation cancelled.'); |
| 102 | 102 | |
| 103 | 103 | return 0; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | // Build the query to find releases to delete |
| 111 | 111 | $query = $this->buildQueryFromCriteria($criteria); |
| 112 | - if (! $query) { |
|
| 112 | + if (!$query) { |
|
| 113 | 113 | $this->error('Could not build query from criteria.'); |
| 114 | 114 | |
| 115 | 115 | return 1; |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | // Get the query that would be executed |
| 190 | 190 | $query = $this->buildQueryFromCriteria($criteria); |
| 191 | 191 | |
| 192 | - if (! $query) { |
|
| 192 | + if (!$query) { |
|
| 193 | 193 | $this->error('Could not build query from criteria.'); |
| 194 | 194 | |
| 195 | 195 | return 1; |
@@ -348,13 +348,13 @@ discard block |
||
| 348 | 348 | switch ($modifier) { |
| 349 | 349 | case 'equals': |
| 350 | 350 | $group = DB::select('SELECT id FROM usenet_groups WHERE name = ?', [$value]); |
| 351 | - if (! empty($group)) { |
|
| 351 | + if (!empty($group)) { |
|
| 352 | 352 | return " AND groups_id = {$group[0]->id}"; |
| 353 | 353 | } |
| 354 | 354 | break; |
| 355 | 355 | case 'like': |
| 356 | 356 | $groups = DB::select('SELECT id FROM usenet_groups WHERE name LIKE ?', ['%'.str_replace(' ', '%', $value).'%']); |
| 357 | - if (! empty($groups)) { |
|
| 357 | + if (!empty($groups)) { |
|
| 358 | 358 | $ids = array_column($groups, 'id'); |
| 359 | 359 | |
| 360 | 360 | return ' AND groups_id IN ('.implode(',', $ids).')'; |