Added Lines Before Namespace Fixers

NoBlankLinesBeforeNamespaceFixer is a contrib level fixer, and OneBlankLinesBeforeNamespaceFixer is a symfony level fixer. This also includes some utils refactoring and improvements.
I suggested countDocblockLines() earlier.
Op 18 dec. 2014 01:54 schreef "Graham Campbell" <notifications@github.com>:

> In Symfony/CS/Utils.php
> <https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/879#discussion-diff-22017501>
> :
>
> >      public static function splitLines($content)
> >      {
> >          preg_match_all("/[^\n\r]+[\r\n]*/", $content, $matches);
> >
> >          return $matches[0];
> >      }
> > +
> > +    /**
> > +     * Count the number of lines in a string.
> > +     *
> > +     * @param string $content
> > +     *
> > +     * @return int
> > +     */
> > +    public static function countLines($content)
>
>  countLines is a new method in this PR, which isnt merged, so you can
> change it
>
> to what?
>
> splitLines() is existing method, rename should happen in 2.0, current
> method could be marked as deprecated
>
> no point - just straight rename it at 2.0
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/879/files#r22017501>.
>