@@ -94,7 +94,7 @@ |
||
94 | 94 | * Builds an array of Classification objects from the passed classification configuration. |
95 | 95 | * |
96 | 96 | * @param array $configuredMappedClasses |
97 | - * @return array |
|
97 | + * @return ClassificationItem[] |
|
98 | 98 | */ |
99 | 99 | protected function buildClassificationsFromConfiguration($configuredMappedClasses) : array |
100 | 100 | { |
@@ -38,11 +38,11 @@ |
||
38 | 38 | public function getMatchingClassNames(string $stringToMatch, $classifications) : array |
39 | 39 | { |
40 | 40 | $matchingClassification = []; |
41 | - foreach($classifications as $classification) { |
|
41 | + foreach ($classifications as $classification) { |
|
42 | 42 | /** @var $classification Classification */ |
43 | - foreach($classification->getMatchPatterns() as $matchPattern) |
|
43 | + foreach ($classification->getMatchPatterns() as $matchPattern) |
|
44 | 44 | { |
45 | - if(preg_match_all('~' . $matchPattern . '~ims', $stringToMatch) > 0) { |
|
45 | + if (preg_match_all('~' . $matchPattern . '~ims', $stringToMatch) > 0) { |
|
46 | 46 | $matchingClassification[] = $classification->getMappedClass(); |
47 | 47 | // if we found one match, we do not need to check the other patterns |
48 | 48 | break; |
@@ -384,7 +384,7 @@ |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | if (!$indexActionResult['pageIndexed']) { |
387 | - $message = 'Failed indexing page Index Queue item: ' . $item->getIndexQueueUid(). ' url: ' . $indexRequestUrl; |
|
387 | + $message = 'Failed indexing page Index Queue item: ' . $item->getIndexQueueUid() . ' url: ' . $indexRequestUrl; |
|
388 | 388 | |
389 | 389 | throw new \RuntimeException($message, 1331837081); |
390 | 390 | } |