Skip to content

Commit

Permalink
Improve constructor placement regex
Browse files Browse the repository at this point in the history
  • Loading branch information
shanethehat committed Jun 22, 2015
1 parent 2af4710 commit 6dc8f6e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -16,5 +16,5 @@
interface MethodGeneratorInterface
{
const METHOD_PLACEMENT = '/}[ \n]*$/';
const CONSTRUCTOR_PLACEMENT = '/\n(?=\s*(private|protected|public)?\s?function)/';
const CONSTRUCTOR_PLACEMENT = '/\n(?=\s*(private|protected|public|static|final|abstract|\s)*function)/';
}

0 comments on commit 6dc8f6e

Please sign in to comment.