Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 11, 2023
1 parent 01cc602 commit b57389e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Checks/Content/TooLongSentenceCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,7 @@ public function validateContent(Crawler $crawler): bool
$realSentences = [];
$sentences = $this->getSentencesFromCrawler($crawler);

<<<<<<< HEAD
foreach ($sentences as $sentence) {
=======
foreach ($sentences as $sentence) {

// If the sentence contains a dot, followed by a space, followed by a capital letter, it's a real sentence.
// This is not 100% correct, but it's good enough for now.
if (! preg_match('/\.\s[A-Z]/', $sentence)) {
continue;
}

>>>>>>> 52e57cee1f910007acb7a6dbe55e1462947043dc
$sentence = explode('.', $sentence);
$realSentences = array_merge($realSentences, $sentence);
}
Expand Down

0 comments on commit b57389e

Please sign in to comment.