@@ -277,9 +277,9 @@ discard block |
||
277 | 277 | |
278 | 278 | |
279 | 279 | /** |
280 | - * @param $major |
|
281 | - * @param $sub |
|
282 | - * @param $minor |
|
280 | + * @param integer $major |
|
281 | + * @param integer $sub |
|
282 | + * @param integer $minor |
|
283 | 283 | * |
284 | 284 | * @return bool |
285 | 285 | */ |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | * Check if the path is excluded via configuration |
296 | 296 | * and therefore the file shouldn't be indexed |
297 | 297 | * |
298 | - * @param $filePath The file to be indexed |
|
298 | + * @param string $filePath The file to be indexed |
|
299 | 299 | * |
300 | 300 | * @return bool |
301 | 301 | */ |
@@ -330,7 +330,7 @@ |
||
330 | 330 | } |
331 | 331 | |
332 | 332 | // check 'startsWith' |
333 | - if ($len <= strlen($filePath) && substr($filePath, 0, $len) === $excludePath) { |
|
333 | + if ($len <= strlen($filePath) && substr($filePath, 0, $len) === $excludePath) { |
|
334 | 334 | return true; |
335 | 335 | } |
336 | 336 |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | public function setDocumentIndexOption(FilesDocument $document, string $option) { |
243 | 243 | $document->getIndex() |
244 | - ->addOption('_' . $option, (string)$this->getAppValue($option)); |
|
244 | + ->addOption('_'.$option, (string)$this->getAppValue($option)); |
|
245 | 245 | } |
246 | 246 | |
247 | 247 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | */ |
302 | 302 | public function isPathExcluded($filePath): bool { |
303 | 303 | $excludedPaths = $this->getExcludedPaths(); |
304 | - foreach($excludedPaths as $excludedPath) { |
|
304 | + foreach ($excludedPaths as $excludedPath) { |
|
305 | 305 | if ($this->isPathMatch($filePath, $excludedPath)) { |
306 | 306 | return true; |
307 | 307 | } |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | } |
336 | 336 | |
337 | 337 | // check regex match |
338 | - $regexPattern = '/' . str_replace('/', '\/', $excludePath) . '/'; |
|
338 | + $regexPattern = '/'.str_replace('/', '\/', $excludePath).'/'; |
|
339 | 339 | if (preg_match($regexPattern, $filePath)) { |
340 | 340 | return true; |
341 | 341 | } |