@@ -62,7 +62,7 @@ |
||
62 | 62 | /** |
63 | 63 | * @param string $copy |
64 | 64 | * @param string $ellipse |
65 | - * @return mixed |
|
65 | + * @return string |
|
66 | 66 | */ |
67 | 67 | protected function truncateWords($copy, $ellipse) |
68 | 68 | { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Get introduction |
58 | 58 | * |
59 | - * @return null|string |
|
59 | + * @return string |
|
60 | 60 | */ |
61 | 61 | public function getIntroduction() |
62 | 62 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** @noinspection PhpUndefinedFieldInspection */ |
41 | 41 | $this->introduction = null; |
42 | 42 | } |
43 | - elseif (!is_scalar($introduction)) { |
|
43 | + elseif ( ! is_scalar($introduction)) { |
|
44 | 44 | throw InvalidArgumentException::create( |
45 | 45 | 'null or string', |
46 | 46 | $introduction |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** @noinspection PhpUndefinedFieldInspection */ |
41 | 41 | $this->copy = null; |
42 | 42 | } |
43 | - elseif (!is_scalar($copy)) { |
|
43 | + elseif ( ! is_scalar($copy)) { |
|
44 | 44 | throw InvalidArgumentException::create( |
45 | 45 | 'string (or scalar)', |
46 | 46 | $copy |