Completed
Push — master ( 0f91be...305d74 )
by Kevin
02:48
created
lib/Extractors/DateTime.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             return true;
114 114
         }
115 115
         $parse = date_parse($part);
116
-        if (!empty($parse) && $parse['day'] !== false && $parse['error_count'] == 0 ) {
116
+        if (!empty($parse) && $parse['day'] !== false && $parse['error_count'] == 0) {
117 117
             return true;
118 118
         } else if (preg_match('/^\d{1,2}[\/\\-]\d{1,2}[\/\\-]\d{1,2}$/', $part)) {
119 119
             return true;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             return true;
128 128
         }
129 129
         $parse = date_parse($part);
130
-        if (!empty($parse) && $parse['month'] !== false && $parse['error_count'] == 0 ) {
130
+        if (!empty($parse) && $parse['month'] !== false && $parse['error_count'] == 0) {
131 131
             return true;
132 132
         } else if (preg_match('/^\d{1,2}[\/\\-]\d{1,2}[\/\\-]\d{1,2}$/', $part)) {
133 133
             return true;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         if (!empty($parse) && $parse['year'] !== false && $parse['error_count'] == 0) {
142 142
             return true;
143 143
             // DateTime parses 2015 as 20:15:00, so this is to account for the unique condition.
144
-        } else if (strlen($part) ==4 ) {
144
+        } else if (strlen($part) == 4) {
145 145
             if ($parse['second'] === 0 && $parse['hour'] == substr($part, 0, 2) && $parse['minute'] == substr($part, 2, 2)) {
146 146
                 return true;
147 147
             }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             return false;
163 163
         }
164 164
         $parse = date_parse($part);
165
-        if (!empty($parse) && $parse['hour'] !== false && $parse['error_count'] == 0 ) {
165
+        if (!empty($parse) && $parse['hour'] !== false && $parse['error_count'] == 0) {
166 166
             return true;
167 167
         }
168 168
         return false;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             return false;
180 180
         }
181 181
         $parse = date_parse($part);
182
-        if (!empty($parse) && $parse['minute'] !== false && $parse['error_count'] == 0 ) {
182
+        if (!empty($parse) && $parse['minute'] !== false && $parse['error_count'] == 0) {
183 183
             return true;
184 184
 
185 185
         }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             return false;
198 198
         }
199 199
         $parse = date_parse($part);
200
-        if (!empty($parse) && $parse['second'] !== false && $parse['error_count'] == 0 ) {
200
+        if (!empty($parse) && $parse['second'] !== false && $parse['error_count'] == 0) {
201 201
             return true;
202 202
         }
203 203
         return false;
Please login to merge, or discard this patch.