@andrey1s , you can make all these rows shorter and stay readable. Something like that:

```php
return $type == self::SHORT && $article->getDescription() ? $article->getDescription() : $article->getContent();
```