Failed Conditions
Pull Request — master (#1723)
by Timo
05:03
created
Classes/Domain/Index/Classification/ClassificationService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Classes/IndexQueue/PageIndexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.