mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-04 01:13:13 +00:00
Code cleany cleany
This commit is contained in:
parent
7308f669a5
commit
a9780f59e7
6 changed files with 48 additions and 20 deletions
|
@ -37,7 +37,7 @@ class Make {
|
|||
|
||||
$string = preg_replace('/ +/', ' ', $string);
|
||||
|
||||
$string = explode(" ", $string);
|
||||
$string = explode(' ', $string);
|
||||
$string_list = array();
|
||||
|
||||
foreach ($string as $i) {
|
||||
|
@ -46,9 +46,9 @@ class Make {
|
|||
}
|
||||
}
|
||||
|
||||
$string = implode(" ", $string_list);
|
||||
$string = implode(' ', $string_list);
|
||||
|
||||
return $string;
|
||||
return trim($string);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue