Passed
Push — master ( 678db7...164b32 )
by Cody
06:12 queued 03:06
created
af_readability/vendor/andreskrey/Readability/Nodes/DOM/DOMNodeList.php 1 patch
Switch Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
     public function __get($name)
33 33
     {
34 34
         switch ($name) {
35
-            case 'length':
36
-                return $this->length;
37
-            default:
38
-                trigger_error(sprintf('Undefined property: %s::%s', static::class, $name));
35
+        case 'length':
36
+            return $this->length;
37
+        default:
38
+            trigger_error(sprintf('Undefined property: %s::%s', static::class, $name));
39 39
         }
40 40
     }
41 41
 
Please login to merge, or discard this patch.
plugins/af_readability/vendor/andreskrey/Readability/Nodes/NodeTrait.php 1 patch
Switch Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -121,36 +121,36 @@
 block discarded – undo
121 121
             $contentScore = 0;
122 122
 
123 123
             switch ($this->nodeName) {
124
-                case 'div':
125
-                    $contentScore += 5;
126
-                    break;
127
-
128
-                case 'pre':
129
-                case 'td':
130
-                case 'blockquote':
131
-                    $contentScore += 3;
132
-                    break;
133
-
134
-                case 'address':
135
-                case 'ol':
136
-                case 'ul':
137
-                case 'dl':
138
-                case 'dd':
139
-                case 'dt':
140
-                case 'li':
141
-                case 'form':
142
-                    $contentScore -= 3;
143
-                    break;
144
-
145
-                case 'h1':
146
-                case 'h2':
147
-                case 'h3':
148
-                case 'h4':
149
-                case 'h5':
150
-                case 'h6':
151
-                case 'th':
152
-                    $contentScore -= 5;
153
-                    break;
124
+            case 'div':
125
+                $contentScore += 5;
126
+                break;
127
+
128
+            case 'pre':
129
+            case 'td':
130
+            case 'blockquote':
131
+                $contentScore += 3;
132
+                break;
133
+
134
+            case 'address':
135
+            case 'ol':
136
+            case 'ul':
137
+            case 'dl':
138
+            case 'dd':
139
+            case 'dt':
140
+            case 'li':
141
+            case 'form':
142
+                $contentScore -= 3;
143
+                break;
144
+
145
+            case 'h1':
146
+            case 'h2':
147
+            case 'h3':
148
+            case 'h4':
149
+            case 'h5':
150
+            case 'h6':
151
+            case 'th':
152
+                $contentScore -= 5;
153
+                break;
154 154
             }
155 155
 
156 156
             $this->contentScore = $contentScore + ($weightClasses ? $this->getClassWeight() : 0);
Please login to merge, or discard this patch.
classes/handler/public.php 1 patch
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -760,24 +760,24 @@
 block discarded – undo
760 760
 				$feed_urls = false;
761 761
 
762 762
 				switch ($rc['code']) {
763
-					case 0:
764
-						print_warning(T_sprintf("Already subscribed to <b>%s</b>.", $feed_url));
765
-						break;
766
-					case 1:
767
-						print_notice(T_sprintf("Subscribed to <b>%s</b>.", $feed_url));
768
-						break;
769
-					case 2:
770
-						print_error(T_sprintf("Could not subscribe to <b>%s</b>.", $feed_url));
771
-						break;
772
-					case 3:
773
-						print_error(T_sprintf("No feeds found in <b>%s</b>.", $feed_url));
774
-						break;
775
-					case 4:
776
-						$feed_urls = $rc["feeds"];
777
-						break;
778
-					case 5:
779
-						print_error(T_sprintf("Could not subscribe to <b>%s</b>.<br>Can't download the Feed URL.", $feed_url));
780
-						break;
763
+				case 0:
764
+					print_warning(T_sprintf("Already subscribed to <b>%s</b>.", $feed_url));
765
+					break;
766
+				case 1:
767
+					print_notice(T_sprintf("Subscribed to <b>%s</b>.", $feed_url));
768
+					break;
769
+				case 2:
770
+					print_error(T_sprintf("Could not subscribe to <b>%s</b>.", $feed_url));
771
+					break;
772
+				case 3:
773
+					print_error(T_sprintf("No feeds found in <b>%s</b>.", $feed_url));
774
+					break;
775
+				case 4:
776
+					$feed_urls = $rc["feeds"];
777
+					break;
778
+				case 5:
779
+					print_error(T_sprintf("Could not subscribe to <b>%s</b>.<br>Can't download the Feed URL.", $feed_url));
780
+					break;
781 781
 				}
782 782
 
783 783
 				if ($feed_urls) {
Please login to merge, or discard this patch.
lib/phpqrcode/qrsplit.php 2 patches
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -255,14 +255,14 @@
 block discarded – undo
255 255
                 $mode = $this->identifyMode(0);
256 256
                 
257 257
                 switch ($mode) {
258
-                    case QR_MODE_NUM: $length = $this->eatNum(); break;
259
-                    case QR_MODE_AN:  $length = $this->eatAn(); break;
260
-                    case QR_MODE_KANJI:
261
-                        if ($this->modeHint == QR_MODE_KANJI)
262
-                                $length = $this->eatKanji();
263
-                        else    $length = $this->eat8();
264
-                        break;
265
-                    default: $length = $this->eat8(); break;
258
+                case QR_MODE_NUM: $length = $this->eatNum(); break;
259
+                case QR_MODE_AN:  $length = $this->eatAn(); break;
260
+                case QR_MODE_KANJI:
261
+                    if ($this->modeHint == QR_MODE_KANJI)
262
+                            $length = $this->eatKanji();
263
+                    else    $length = $this->eat8();
264
+                    break;
265
+                default: $length = $this->eat8(); break;
266 266
                 
267 267
                 }
268 268
 
Please login to merge, or discard this patch.
Braces   +29 added lines, -17 removed lines patch added patch discarded remove patch
@@ -123,8 +123,9 @@  discard block
 block discarded – undo
123 123
             }
124 124
             
125 125
             $ret = $this->input->append(QR_MODE_NUM, $run, str_split($this->dataStr));
126
-            if ($ret < 0)
127
-                return -1;
126
+            if ($ret < 0) {
127
+                            return -1;
128
+            }
128 129
 
129 130
             return $run;
130 131
         }
@@ -170,8 +171,9 @@  discard block
 block discarded – undo
170 171
             }
171 172
 
172 173
             $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr));
173
-            if ($ret < 0)
174
-                return -1;
174
+            if ($ret < 0) {
175
+                            return -1;
176
+            }
175 177
 
176 178
             return $run;
177 179
         }
@@ -186,8 +188,9 @@  discard block
 block discarded – undo
186 188
             }
187 189
             
188 190
             $ret = $this->input->append(QR_MODE_KANJI, $p, str_split($this->dataStr));
189
-            if ($ret < 0)
190
-                return -1;
191
+            if ($ret < 0) {
192
+                            return -1;
193
+            }
191 194
 
192 195
             return $ret;
193 196
         }
@@ -241,8 +244,9 @@  discard block
 block discarded – undo
241 244
             $run = $p;
242 245
             $ret = $this->input->append(QR_MODE_8, $run, str_split($this->dataStr));
243 246
             
244
-            if ($ret < 0)
245
-                return -1;
247
+            if ($ret < 0) {
248
+                            return -1;
249
+            }
246 250
 
247 251
             return $run;
248 252
         }
@@ -252,8 +256,9 @@  discard block
 block discarded – undo
252 256
         {
253 257
             while (strlen($this->dataStr) > 0)
254 258
             {
255
-                if ($this->dataStr == '')
256
-                    return 0;
259
+                if ($this->dataStr == '') {
260
+                                    return 0;
261
+                }
257 262
 
258 263
                 $mode = $this->identifyMode(0);
259 264
                 
@@ -261,16 +266,22 @@  discard block
 block discarded – undo
261 266
                     case QR_MODE_NUM: $length = $this->eatNum(); break;
262 267
                     case QR_MODE_AN:  $length = $this->eatAn(); break;
263 268
                     case QR_MODE_KANJI:
264
-                        if ($this->modeHint == QR_MODE_KANJI)
265
-                                $length = $this->eatKanji();
266
-                        else    $length = $this->eat8();
269
+                        if ($this->modeHint == QR_MODE_KANJI) {
270
+                                                        $length = $this->eatKanji();
271
+                        } else {
272
+                            $length = $this->eat8();
273
+                        }
267 274
                         break;
268 275
                     default: $length = $this->eat8(); break;
269 276
                 
270 277
                 }
271 278
 
272
-                if ($length == 0) return 0;
273
-                if ($length < 0)  return -1;
279
+                if ($length == 0) {
280
+                    return 0;
281
+                }
282
+                if ($length < 0) {
283
+                    return -1;
284
+                }
274 285
                 
275 286
                 $this->dataStr = substr($this->dataStr, $length);
276 287
             }
@@ -306,8 +317,9 @@  discard block
 block discarded – undo
306 317
 
307 318
             $split = new QRsplit($string, $input, $modeHint);
308 319
             
309
-            if (!$casesensitive)
310
-                $split->toUpper();
320
+            if (!$casesensitive) {
321
+                            $split->toUpper();
322
+            }
311 323
                 
312 324
             return $split->splitString();
313 325
         }
Please login to merge, or discard this patch.
lib/phpqrcode/qrencode.php 2 patches
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -415,28 +415,28 @@
 block discarded – undo
415 415
             $enc->margin = $margin;
416 416
             
417 417
             switch ($level.'') {
418
-                case '0':
419
-                case '1':
420
-                case '2':
421
-                case '3':
422
-                        $enc->level = $level;
423
-                    break;
424
-                case 'l':
425
-                case 'L':
426
-                        $enc->level = QR_ECLEVEL_L;
427
-                    break;
428
-                case 'm':
429
-                case 'M':
430
-                        $enc->level = QR_ECLEVEL_M;
431
-                    break;
432
-                case 'q':
433
-                case 'Q':
434
-                        $enc->level = QR_ECLEVEL_Q;
435
-                    break;
436
-                case 'h':
437
-                case 'H':
438
-                        $enc->level = QR_ECLEVEL_H;
439
-                    break;
418
+            case '0':
419
+            case '1':
420
+            case '2':
421
+            case '3':
422
+                    $enc->level = $level;
423
+                break;
424
+            case 'l':
425
+            case 'L':
426
+                    $enc->level = QR_ECLEVEL_L;
427
+                break;
428
+            case 'm':
429
+            case 'M':
430
+                    $enc->level = QR_ECLEVEL_M;
431
+                break;
432
+            case 'q':
433
+            case 'Q':
434
+                    $enc->level = QR_ECLEVEL_Q;
435
+                break;
436
+            case 'h':
437
+            case 'H':
438
+                    $enc->level = QR_ECLEVEL_H;
439
+                break;
440 440
             }
441 441
             
442 442
             return $enc;
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,14 +104,17 @@  discard block
 block discarded – undo
104 104
                 $blockNo++;
105 105
             }
106 106
 
107
-            if (QRspec::rsBlockNum2($spec) == 0)
108
-                return 0;
107
+            if (QRspec::rsBlockNum2($spec) == 0) {
108
+                            return 0;
109
+            }
109 110
 
110 111
             $dl = QRspec::rsDataCodes2($spec);
111 112
             $el = QRspec::rsEccCodes2($spec);
112 113
             $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
113 114
             
114
-            if ($rs == null) return -1;
115
+            if ($rs == null) {
116
+                return -1;
117
+            }
115 118
             
116 119
             for ($i = 0; $i < QRspec::rsBlockNum2($spec); $i++) {
117 120
                 $ecc = array_slice($this->ecccode, $eccPos);
@@ -249,7 +252,9 @@  discard block
 block discarded – undo
249 252
             }
250 253
 
251 254
             $input = new QRinput($version, $level);
252
-            if ($input == null) return null;
255
+            if ($input == null) {
256
+                return null;
257
+            }
253 258
 
254 259
             $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
255 260
             if ($ret < 0) {
@@ -269,7 +274,9 @@  discard block
 block discarded – undo
269 274
             }
270 275
 
271 276
             $input = new QRinput($version, $level);
272
-            if ($input == null) return null;
277
+            if ($input == null) {
278
+                return null;
279
+            }
273 280
 
274 281
             $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);
275 282
             if ($ret < 0) {
@@ -379,7 +386,9 @@  discard block
 block discarded – undo
379 386
                         }
380 387
                     }
381 388
                 }
382
-                if ($x < 0 || $y < 0) return null;
389
+                if ($x < 0 || $y < 0) {
390
+                    return null;
391
+                }
383 392
 
384 393
                 $this->x = $x;
385 394
                 $this->y = $y;
Please login to merge, or discard this patch.
classes/logger.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@
 block discarded – undo
52 52
 
53 53
     public function __construct() {
54 54
         switch (LOG_DESTINATION) {
55
-            case "sql":
56
-                $this->adapter = new Logger_SQL();
57
-                break;
58
-            case "syslog":
59
-                $this->adapter = new Logger_Syslog();
60
-                break;
61
-            default:
62
-                $this->adapter = false;
55
+        case "sql":
56
+            $this->adapter = new Logger_SQL();
57
+            break;
58
+        case "syslog":
59
+            $this->adapter = new Logger_Syslog();
60
+            break;
61
+        default:
62
+            $this->adapter = false;
63 63
         }
64 64
     }
65 65
 
Please login to merge, or discard this patch.
classes/logger/sql.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,9 @@
 block discarded – undo
24 24
 			];
25 25
 
26 26
 			foreach ($server_params as $n => $p) {
27
-				if (isset($_SERVER[$p]))
28
-					$context .= "\n$n: ".$_SERVER[$p];
27
+				if (isset($_SERVER[$p])) {
28
+									$context .= "\n$n: ".$_SERVER[$p];
29
+				}
29 30
 			}
30 31
 
31 32
 			// passed error message may contain invalid unicode characters, failing to insert an error here
Please login to merge, or discard this patch.
classes/feeditem/common.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,8 +186,9 @@
 block discarded – undo
186 186
 			$cat = clean(trim(mb_strtolower($srccat)));
187 187
 
188 188
 			// we don't support numeric tags
189
-			if (is_numeric($cat))
190
-				$cat = 't:'.$cat;
189
+			if (is_numeric($cat)) {
190
+							$cat = 't:'.$cat;
191
+			}
191 192
 
192 193
 			$cat = preg_replace('/[,\'\"]/', "", $cat);
193 194
 
Please login to merge, or discard this patch.
plugins/mail/init.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,8 +124,9 @@
 block discarded – undo
124 124
 
125 125
 		while ($line = $sth->fetch()) {
126 126
 
127
-			if (!$subject)
128
-				$subject = __("[Forwarded]")." ".htmlspecialchars($line["title"]);
127
+			if (!$subject) {
128
+							$subject = __("[Forwarded]")." ".htmlspecialchars($line["title"]);
129
+			}
129 130
 
130 131
 			$tpl->setVariable('ARTICLE_TITLE', strip_tags($line["title"]));
131 132
 			$tnote = strip_tags($line["note"]);
Please login to merge, or discard this patch.