@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * Results rule that returns the value appended with a given value |
49 | 49 | * |
50 | 50 | * @param string $append |
51 | - * @return Chain |
|
51 | + * @return FilterResource |
|
52 | 52 | */ |
53 | 53 | public function append($append) |
54 | 54 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * Results rule that returns the value prepended with a given value |
179 | 179 | * |
180 | 180 | * @param string $prepend |
181 | - * @return Chain |
|
181 | + * @return FilterResource |
|
182 | 182 | */ |
183 | 183 | public function prepend($prepend) |
184 | 184 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | public function filter($value) |
45 | 45 | { |
46 | 46 | if (empty($value) && isset($this->filterData[$this->fieldToSlugFrom])) { |
47 | - $value = $this->filterData[$this->fieldToSlugFrom]; |
|
47 | + $value = $this->filterData[$this->fieldToSlugFrom]; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | $value = transliterator_transliterate($this->transliterator, $value); |
@@ -40,6 +40,6 @@ |
||
40 | 40 | */ |
41 | 41 | public function filter($value) |
42 | 42 | { |
43 | - return $value . $this->append; |
|
43 | + return $value.$this->append; |
|
44 | 44 | } |
45 | 45 | } |
@@ -40,6 +40,6 @@ |
||
40 | 40 | */ |
41 | 41 | public function filter($value) |
42 | 42 | { |
43 | - return $this->prepend . $value; |
|
43 | + return $this->prepend.$value; |
|
44 | 44 | } |
45 | 45 | } |
@@ -28,12 +28,12 @@ |
||
28 | 28 | if ($this->encodingFormat !== null) { |
29 | 29 | $firstChar = mb_substr($value, 0, 1, $this->encodingFormat); |
30 | 30 | $rest = mb_substr($value, 1, null, $this->encodingFormat); |
31 | - return mb_strtoupper($firstChar, $this->encodingFormat) . $rest; |
|
31 | + return mb_strtoupper($firstChar, $this->encodingFormat).$rest; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | $firstChar = mb_substr($value, 0, 1); |
35 | 35 | $rest = mb_substr($value, 1); |
36 | 36 | |
37 | - return mb_strtoupper($firstChar) . $rest; |
|
37 | + return mb_strtoupper($firstChar).$rest; |
|
38 | 38 | } |
39 | 39 | } |