Passed
Push — master ( 0b6ebf...b8d851 )
by Darko
17:09 queued 05:38
created
app/Console/Commands/PostProcessGuid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $guid = $this->argument('guid');
39 39
         $renamed = $this->argument('renamed') ?? '';
40 40
 
41
-        if (! $this->isValidChar($guid)) {
41
+        if (!$this->isValidChar($guid)) {
42 42
             $this->error('GUID character must be a-f or 0-9.');
43 43
 
44 44
             return self::FAILURE;
Please login to merge, or discard this patch.
app/Console/Commands/BackfillGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $type = (int) $this->argument('type');
36 36
         $quantity = $this->argument('quantity');
37 37
 
38
-        if (! \in_array($type, [1, 2], true)) {
38
+        if (!\in_array($type, [1, 2], true)) {
39 39
             $this->error('Invalid backfill type. Must be 1 (interval) or 2 (all).');
40 40
 
41 41
             return self::FAILURE;
Please login to merge, or discard this patch.
app/Console/Commands/UpdateBinaries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             $nntp = $this->getNntp();
44 44
             $binaries = new Binaries(['NNTP' => $nntp]);
45 45
 
46
-            if ($groupName && ! is_numeric($groupName)) {
46
+            if ($groupName && !is_numeric($groupName)) {
47 47
                 $this->info("Updating group: {$groupName}");
48 48
                 $this->updateSingleGroup($binaries, $groupName, $maxHeaders);
49 49
             } else {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $group = UsenetGroup::getByName($groupName)->toArray();
69 69
 
70
-        if (! is_array($group)) {
70
+        if (!is_array($group)) {
71 71
             throw new \Exception("Group not found: {$groupName}");
72 72
         }
73 73
 
Please login to merge, or discard this patch.
app/Console/Commands/ReleasesFixNamesGroup.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
 
103 103
             // Process UID
104 104
             if ((int) $release->proc_uid === NameFixer::PROC_UID_NONE &&
105
-                (! empty($release->uid) || ! empty($release->mediainfo))) {
105
+                (!empty($release->uid) || !empty($release->mediainfo))) {
106 106
 
107
-                if (! empty($release->uid)) {
107
+                if (!empty($release->uid)) {
108 108
                     $this->nameFixer->checkName($release, true, 'UID, ', 1, true);
109 109
                 }
110 110
 
111
-                if (empty($this->nameFixer->matched) && ! empty($release->mediainfo)) {
111
+                if (empty($this->nameFixer->matched) && !empty($release->mediainfo)) {
112 112
                     $this->nameFixer->checkName($release, true, 'Mediainfo, ', 1, true);
113 113
                 }
114 114
             }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             }
123 123
 
124 124
             // Process CRC32
125
-            if ((int) $release->proc_crc32 === NameFixer::PROC_CRC_NONE && ! empty($release->crc)) {
125
+            if ((int) $release->proc_crc32 === NameFixer::PROC_CRC_NONE && !empty($release->crc)) {
126 126
                 $this->nameFixer->reset();
127 127
                 $this->nameFixer->checkName($release, true, 'CRC32, ', 1, true);
128 128
             }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             }
151 151
 
152 152
             // Process PAR2 hash
153
-            if ((int) $release->proc_hash16k === NameFixer::PROC_HASH16K_NONE && ! empty($release->hash)) {
153
+            if ((int) $release->proc_hash16k === NameFixer::PROC_HASH16K_NONE && !empty($release->hash)) {
154 154
                 $this->nameFixer->reset();
155 155
                 $this->nameFixer->checkName($release, true, 'PAR2 hash, ', 1, true);
156 156
             }
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
             // Process NFO
167 167
             if ((int) $release->nfostatus === Nfo::NFO_FOUND &&
168 168
                 (int) $release->proc_nfo === NameFixer::PROC_NFO_NONE &&
169
-                ! empty($release->textstring) &&
170
-                ! preg_match('/^=newz\[NZB\]=\w+/', $release->textstring)) {
169
+                !empty($release->textstring) &&
170
+                !preg_match('/^=newz\[NZB\]=\w+/', $release->textstring)) {
171 171
 
172 172
                 $this->nameFixer->reset();
173 173
                 $this->nameFixer->checkName($release, true, 'NFO, ', 1, true);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             // Process PAR2
209 209
             if ((int) $release->proc_par2 === NameFixer::PROC_PAR2_NONE) {
210 210
                 // Initialize NZB contents if needed
211
-                if (! isset($nzbcontents)) {
211
+                if (!isset($nzbcontents)) {
212 212
                     $nntp = new NNTP;
213 213
                     $compressedHeaders = config('nntmux_nntp.compressed_headers');
214 214
 
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxSessionManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function killSession(): bool
66 66
     {
67
-        if (! $this->sessionExists()) {
67
+        if (!$this->sessionExists()) {
68 68
             return true;
69 69
         }
70 70
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function attachSession(): bool
80 80
     {
81
-        if (! $this->sessionExists()) {
81
+        if (!$this->sessionExists()) {
82 82
             return false;
83 83
         }
84 84
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function listPanes(): array
96 96
     {
97
-        if (! $this->sessionExists()) {
97
+        if (!$this->sessionExists()) {
98 98
             return [];
99 99
         }
100 100
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             "tmux list-panes -s -t {$this->sessionName} -F '#{window_index}:#{pane_index} #{pane_title}'"
103 103
         );
104 104
 
105
-        if (! $result->successful()) {
105
+        if (!$result->successful()) {
106 106
             return [];
107 107
         }
108 108
 
Please login to merge, or discard this patch.
app/Services/Tmux/Scripts/groupfixrelnames.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 $colorCli = new ColorCLI;
18 18
 
19
-if (! isset($argv[1])) {
19
+if (!isset($argv[1])) {
20 20
     $colorCli->error('This script is not intended to be run manually, it is called from Multiprocessing.');
21 21
     exit(1);
22 22
 }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 switch ($type) {
31 31
     case 'standard':
32
-        if ($guidChar === null || $maxPerRun === null || ! is_numeric($maxPerRun)) {
32
+        if ($guidChar === null || $maxPerRun === null || !is_numeric($maxPerRun)) {
33 33
             $colorCli->error('Invalid arguments for standard type');
34 34
             exit(1);
35 35
         }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         break;
39 39
 
40 40
     case 'predbft':
41
-        if (! isset($maxPerRun) || ! is_numeric($maxPerRun) || ! isset($thread) || ! is_numeric($thread)) {
41
+        if (!isset($maxPerRun) || !is_numeric($maxPerRun) || !isset($thread) || !is_numeric($thread)) {
42 42
             $colorCli->error('Invalid arguments for predbft type');
43 43
             exit(1);
44 44
         }
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxLayoutBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     protected function buildFullLayout(): bool
41 41
     {
42 42
         // Window 0: Monitor + Binaries + Backfill + Releases
43
-        if (! $this->sessionManager->createSession('Monitor')) {
43
+        if (!$this->sessionManager->createSession('Monitor')) {
44 44
             return false;
45 45
         }
46 46
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     protected function buildBasicLayout(): bool
83 83
     {
84 84
         // Window 0: Monitor + Releases
85
-        if (! $this->sessionManager->createSession('Monitor')) {
85
+        if (!$this->sessionManager->createSession('Monitor')) {
86 86
             return false;
87 87
         }
88 88
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     protected function buildStrippedLayout(): bool
117 117
     {
118 118
         // Window 0: Monitor + Sequential
119
-        if (! $this->sessionManager->createSession('Monitor')) {
119
+        if (!$this->sessionManager->createSession('Monitor')) {
120 120
             return false;
121 121
         }
122 122
 
Please login to merge, or discard this patch.
app/Console/Commands/IrcScraperCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $silent = $this->option('quiet');
38 38
         $debug = $this->option('debug');
39 39
 
40
-        if (! $silent) {
40
+        if (!$silent) {
41 41
             $this->info('Starting IRC Scraper...');
42 42
             if ($debug) {
43 43
                 $this->warn('Debug mode enabled');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
             return self::SUCCESS;
51 51
         } catch (\Exception $e) {
52
-            if (! $silent) {
52
+            if (!$silent) {
53 53
                 $this->error($e->getMessage());
54 54
             }
55 55
 
Please login to merge, or discard this patch.
app/Console/Commands/RemoveCrapReleases.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $blacklistId = $this->option('blacklist-id') ?? '';
28 28
         $delete = $this->option('delete');
29 29
 
30
-        if (! $delete) {
30
+        if (!$delete) {
31 31
             $this->warn('Running in DRY-RUN mode. Use --delete to actually remove releases.');
32 32
         }
33 33
 
Please login to merge, or discard this patch.