X
Create New Item
Item Type :
File
Folder
Item Name :
X
Search Results
vendor
laravel
framework
src
Illuminate
Console
View
Components
Mutators
Cancel
Backup
Advanced Editor
Save
<?php namespace Illuminate\Console\View\Components\Mutators; class EnsurePunctuation { /** * Ensures the given string ends with punctuation. * * @param string $string * @return string */ public function __invoke($string) { if (! str($string)->endsWith(['.', '?', '!', ':'])) { return "$string."; } return $string; } }