1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00

Merge pull request #47 from ConnorVG/patch-1

Fix Invalid Code
This commit is contained in:
Tomáš Votruba
2017-09-01 22:01:10 +02:00
committed by GitHub

View File

@@ -516,6 +516,8 @@ than the vast majority of other programmers.
$name = 'Ryan McDermott';
function splitIntoFirstAndLastName() {
global $name;
$name = preg_split('/ /', $name);
}