Skip to content

Commit 342680b

Browse files
committed
Changed Ukrainian С to English C
1 parent 840245b commit 342680b

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

Api/ShortContentExtractorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ interface ShortContentExtractorInterface
1414
* Retrieve short filtered content
1515
* @param string$content
1616
* @param mixed $len
17-
* @param mixed $endСharacters
17+
* @param mixed $endCharacters
1818
* @return string
1919
* @throws \Exception
2020
*/
21-
public function execute($content, $len = null, $endСharacters = null);
21+
public function execute($content, $len = null, $endCharacters = null);
2222

2323
}

Block/Post/AbstractPost.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ public function getPost()
119119
* Retrieve post short content
120120
*
121121
* @param mixed $len
122-
* @param mixed $endСharacters
122+
* @param mixed $endCharacters
123123
* @return string
124124
*/
125-
public function getShorContent($len = null, $endСharacters = null)
125+
public function getShorContent($len = null, $endCharacters = null)
126126
{
127-
return $this->getPost()->getShortFilteredContent($len, $endСharacters);
127+
return $this->getPost()->getShortFilteredContent($len, $endCharacters);
128128
}
129129

130130
/**

Block/Widget/Featured.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ protected function getPostIdsConfigValue()
5454
*
5555
* @param \Magefan\Blog\Model\Post $post
5656
* @param mixed $len
57-
* @param mixed $endСharacters
57+
* @param mixed $endCharacters
5858
* @return string
5959
*/
60-
public function getShorContent($post, $len = null, $endСharacters = null)
60+
public function getShorContent($post, $len = null, $endCharacters = null)
6161
{
62-
return $post->getShortFilteredContent($len, $endСharacters);
62+
return $post->getShortFilteredContent($len, $endCharacters);
6363
}
6464

6565
/**

Block/Widget/Recent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ public function getCategory()
167167
*
168168
* @param \Magefan\Blog\Model\Post $post
169169
* @param mixed $len
170-
* @param mixed $endСharacters
170+
* @param mixed $endCharacters
171171
* @return string
172172
*/
173-
public function getShorContent($post, $len = null, $endСharacters = null)
173+
public function getShorContent($post, $len = null, $endCharacters = null)
174174
{
175-
return $post->getShortFilteredContent($len, $endСharacters);
175+
return $post->getShortFilteredContent($len, $endCharacters);
176176
}
177177

178178
/**

Model/ShortContentExtractor.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ public function __construct(
4444
* Retrieve short filtered content
4545
* @param string $content
4646
* @param mixed $len
47-
* @param mixed $endСharacters
47+
* @param mixed $endCharacters
4848
* @return string
4949
* @throws \Exception
5050
*/
51-
public function execute($content, $len = null, $endСharacters = null)
51+
public function execute($content, $len = null, $endCharacters = null)
5252
{
5353
$content = (string)$content;
5454

55-
$key = md5($content) . $len . $endСharacters;
55+
$key = md5($content) . $len . $endCharacters;
5656
if (!isset($this->executedContent[$key])) {
5757

5858
$content = $this->filterProvider->getPageFilter()->filter(
@@ -156,19 +156,19 @@ public function execute($content, $len = null, $endСharacters = null)
156156
}
157157
}
158158

159-
if ($endСharacters === null) {
160-
$endСharacters = '';
159+
if ($endCharacters === null) {
160+
$endCharacters = '';
161161
}
162162

163-
if ($len && $endСharacters) {
163+
if ($len && $endCharacters) {
164164
$trimMask = " \t\n\r\0\x0B,.!?";
165165
if ($p = strrpos($content, '</')) {
166166
$content = trim(substr($content, 0, $p), $trimMask)
167-
. $endСharacters
167+
. $endCharacters
168168
. substr($content, $p);
169169
} else {
170170
$content = trim($content, $trimMask)
171-
. $endСharacters;
171+
. $endCharacters;
172172
}
173173
}
174174

0 commit comments

Comments
 (0)