Completed
Branch unit-tests (e061ab)
by Ekin
03:45
created
src/BrillTagger.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                     $tags[$i]['tag'] = 'PPSS';
69 69
                 }
70 70
                 # Convert noun to number if . appears
71
-                if(strpos($token, '.') !== false) {
71
+                if (strpos($token, '.') !== false) {
72 72
                     $tags[$i]['tag'] = 'CD';
73 73
                 }
74 74
             }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         return $tags;
110 110
     }
111 111
 
112
-    public function tokenExists($token){
112
+    public function tokenExists($token) {
113 113
         return isset($this->dictionary[strtolower($token)]);
114 114
     }
115 115
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         return substr(trim($tag), 0, 1) == 'N';
118 118
     }
119 119
 
120
-    public function isSingularNoun($tag){
120
+    public function isSingularNoun($tag) {
121 121
         return $tag == 'NN';
122 122
     }
123 123
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
     #  ours mine his her/hers their/theirs our its my your/yours out thy thine
170 170
     public function isPossessivePronoun($tag) {
171
-        return in_array($tag,['PP$$', 'PP$']);
171
+        return in_array($tag, ['PP$$', 'PP$']);
172 172
     }
173 173
 
174 174
     public function isAdjective($token) {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         return substr($token, -2) == 'ed';
184 184
     }
185 185
 
186
-    public function isAdverb($token){
186
+    public function isAdverb($token) {
187 187
         return substr($token, -2) == 'ly';
188 188
     }
189 189
 }
Please login to merge, or discard this patch.