Notice: Use of undefined constant – assumed ‘ ‘ [closed]

Thanks to @TomJNowell for suggesting running the snippet through a code cleaner, which fixed this issue!