Passed
Push — master ( d9b23e...c2fe70 )
by Arthur
01:41
created
src/dataset/EnglishSet.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,23 +36,23 @@
 block discarded – undo
36 36
             'strapon',
37 37
             'shag',
38 38
         ],
39
-        '0.9' => ['ugly', 'stupid', 'dumb', 'boobs', 'pish', 'fanny', 'slag', 'squirt'],
40
-        '0.8' => ['silly', 'tits', 'pussy', 'sick', 'git', 'ass', 'poop'],
41
-        '0.7' => ['shallow', 'foolish', 'nonce', 'bugger'],
42
-        '0.6' => ['rednack', 'mindless', 'fat', 'nude', 'wft', 'snot'],
43
-        '0.5' => ['bully', 'sneaky', 'greedy', 'creep'],
44
-        '0.4' => ['superficial', 'numb', 'clown', 'villager'],
45
-        '0.3' => ['fake', 'strange', 'ignorant', 'critical', 'nuts', 'cum', 'come'],
46
-        '0.2' => ['useless', 'thoughtless', 'crazy', 'bollocks'],
47
-        '0.1' => ['dude', 'pal', 'yo'],
39
+        '0.9' => [ 'ugly', 'stupid', 'dumb', 'boobs', 'pish', 'fanny', 'slag', 'squirt' ],
40
+        '0.8' => [ 'silly', 'tits', 'pussy', 'sick', 'git', 'ass', 'poop' ],
41
+        '0.7' => [ 'shallow', 'foolish', 'nonce', 'bugger' ],
42
+        '0.6' => [ 'rednack', 'mindless', 'fat', 'nude', 'wft', 'snot' ],
43
+        '0.5' => [ 'bully', 'sneaky', 'greedy', 'creep' ],
44
+        '0.4' => [ 'superficial', 'numb', 'clown', 'villager' ],
45
+        '0.3' => [ 'fake', 'strange', 'ignorant', 'critical', 'nuts', 'cum', 'come' ],
46
+        '0.2' => [ 'useless', 'thoughtless', 'crazy', 'bollocks' ],
47
+        '0.1' => [ 'dude', 'pal', 'yo' ],
48 48
     ];
49 49
 
50 50
     private $phrases = [
51
-        '1.0' => ['dirty sanchez', 'gang bang', 'piss off'],
52
-        '0.9' => ['swinger party', 'bloody hell', 'bugger off'],
53
-        '0.8' => ['get staffed', 'get lost'],
54
-        '0.7' => ['screw you', 'screw u'],
55
-        '0.3' => ['white supremacy', 'black supremacy', 'ku klux klan', 'black people', 'white people'],
51
+        '1.0' => [ 'dirty sanchez', 'gang bang', 'piss off' ],
52
+        '0.9' => [ 'swinger party', 'bloody hell', 'bugger off' ],
53
+        '0.8' => [ 'get staffed', 'get lost' ],
54
+        '0.7' => [ 'screw you', 'screw u' ],
55
+        '0.3' => [ 'white supremacy', 'black supremacy', 'ku klux klan', 'black people', 'white people' ],
56 56
     ];
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
src/core/Words.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,21 +69,21 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $lowerSource = $this->addLowSpaces($this->text->getString());
71 71
         if (preg_match_all('/\s(([\w]+)[\*]+([\w]+))\s/', $lowerSource, $matches) > 0) {
72
-            $this->score += (self::ASTERISKS_MIDDLE * count($matches[0]));
72
+            $this->score += (self::ASTERISKS_MIDDLE * count($matches[ 0 ]));
73 73
             if ($this->text->isReplaceable()) {
74 74
                 $this->replaceMatches($matches);
75 75
             }
76 76
         }
77 77
         $lowerSource = $this->addLowSpaces($this->text->getString());
78 78
         if (preg_match_all('/\s(([\w]+)[\*]+)\s/', $lowerSource, $matches) > 0) {
79
-            $this->score += (self::ASTERISKS_RIGHT * count($matches[0]));
79
+            $this->score += (self::ASTERISKS_RIGHT * count($matches[ 0 ]));
80 80
             if ($this->text->isReplaceable()) {
81 81
                 $this->replaceMatches($matches);
82 82
             }
83 83
         }
84 84
         $lowerSource = $this->addLowSpaces($this->text->getString());
85 85
         if (preg_match_all('/\s([\*]+([\w]+))\s/', $lowerSource, $matches) > 0) {
86
-            $this->score += (self::ASTERISKS_LEFT * count($matches[0]));
86
+            $this->score += (self::ASTERISKS_LEFT * count($matches[ 0 ]));
87 87
             if ($this->text->isReplaceable()) {
88 88
                 $this->replaceMatches($matches);
89 89
             }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     private function replaceMatches(array $matches) : void
137 137
     {
138 138
         /** @var array $matches */
139
-        foreach ($matches[0] as $word) {
139
+        foreach ($matches[ 0 ] as $word) {
140 140
             $this->replace($word);
141 141
         }
142 142
     }
Please login to merge, or discard this patch.