tchwork / utf8

Portable and performant UTF-8, Unicode and Grapheme Clusters for PHP
Apache License 2.0
627 stars 50 forks source link

Use PSR-1+2+4 code style #45

Closed nicolas-grekas closed 9 years ago

GrahamCampbell commented 9 years ago

How about you change the autoloader to psr4 while you're at it?

nicolas-grekas commented 9 years ago

PSR-4 now

GrahamCampbell commented 9 years ago

:)

nicolas-grekas commented 9 years ago

But packagist gives me a error (invalid value (Normalizer), namespaces must end with a namespace separator)

GrahamCampbell commented 9 years ago

Yeh, you can't have Normalizer. It must be Normalizer\\.

nicolas-grekas commented 9 years ago

Then I must switch back to psr-0...

GrahamCampbell commented 9 years ago

Why?

GrahamCampbell commented 9 years ago

Loading the Normaliser class, you should just use a class map, then psr4 the rest.

GrahamCampbell commented 9 years ago

Since the Normaiser class doesn't follow psr0/psr4 as it's not namespaced.