Passed
Push — master ( 1e9ab0...74f1ac )
by Darko
11:16
created
app/Console/Commands/RenameOtherMiscReleases.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $show = $this->option('show');
53 53
         $sizeTolerance = (float) $this->option('size-tolerance');
54 54
 
55
-        if ($limit && ! is_numeric($limit)) {
55
+        if ($limit && !is_numeric($limit)) {
56 56
             $this->error('Limit must be a numeric value.');
57 57
 
58 58
             return Command::FAILURE;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             // Try to match by title and size
128 128
             $matched = $this->matchByTitleAndSize($release, $cleanName, $dryRun, $show, $sizeTolerance, $categorize);
129 129
 
130
-            if (! $matched) {
130
+            if (!$matched) {
131 131
                 // Try to match by filename and size
132 132
                 $matched = $this->matchByFilenameAndSize($release, $cleanName, $dryRun, $show, $sizeTolerance, $categorize);
133 133
             }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 $this->matched++;
137 137
             }
138 138
 
139
-            if (! $show && $this->checked % 10 === 0) {
139
+            if (!$show && $this->checked % 10 === 0) {
140 140
                 $percent = round(($this->checked / $total) * 100, 1);
141 141
                 $this->info(
142 142
                     "Progress: {$percent}% ({$this->checked}/{$total}) | ".
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             }
146 146
         }
147 147
 
148
-        if (! $show) {
148
+        if (!$show) {
149 149
             echo PHP_EOL;
150 150
         }
151 151
     }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 $this->matched++;
191 191
             }
192 192
 
193
-            if (! $show && ($this->checked - $initialChecked) % 10 === 0) {
193
+            if (!$show && ($this->checked - $initialChecked) % 10 === 0) {
194 194
                 $percent = round((($this->checked - $initialChecked) / $total) * 100, 1);
195 195
                 $this->info(
196 196
                     "Progress: {$percent}% ({$this->checked}/{$total}) | ".
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             }
200 200
         }
201 201
 
202
-        if (! $show) {
202
+        if (!$show) {
203 203
             echo PHP_EOL;
204 204
         }
205 205
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
         $predb = Predb::query()
221 221
             ->where('title', $cleanName)
222
-            ->where(function ($query) use ($sizeMin, $sizeMax) {
222
+            ->where(function($query) use ($sizeMin, $sizeMax) {
223 223
                 $query->whereNull('size')
224 224
                     ->orWhereBetween('size', [$sizeMin, $sizeMax]);
225 225
             })
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
         $predb = Predb::query()
249 249
             ->where('filename', $cleanName)
250
-            ->where(function ($query) use ($sizeMin, $sizeMax) {
250
+            ->where(function($query) use ($sizeMin, $sizeMax) {
251 251
                 $query->whereNull('size')
252 252
                     ->orWhereBetween('size', [$sizeMin, $sizeMax]);
253 253
             })
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 
312 312
         if ($release->searchname === $predb->title) {
313 313
             // Names already match, just update predb_id
314
-            if (! $dryRun) {
314
+            if (!$dryRun) {
315 315
                 Release::where('id', $release->id)->update(['predb_id' => $predb->id]);
316 316
             }
317 317
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $newCategory = null;
343 343
         $newCategoryName = $oldCategoryName;
344 344
 
345
-        if (! $dryRun) {
345
+        if (!$dryRun) {
346 346
             // Update release
347 347
             Release::where('id', $release->id)->update([
348 348
                 'name' => $newName,
Please login to merge, or discard this patch.