Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

PSR2 #1

Merged
merged 1 commit into from

2 participants

@mgallego

I'm trying to adapt my PHP code standards PSR0-1 and 2 and I'm starting to use yasnippet in emacs.
If you are interested in every change I make in my repository I can do a pull request, otherwise just rejects this pull request and will not perform any more

Change the brace position in the function snippet like the PSR2 standard

https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-2-advanced.md#43-methods

@barendt barendt merged commit 183fe85 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +2 −1  php-mode/funct
  2. +2 −1  php-mode/function
View
3  php-mode/funct
@@ -1,6 +1,7 @@
#contributor : Andrew Gwozdziewycz <web@apgwoz.com>
#name : funct ...(...)
# --
-function ${function_name}(${function_args}) {
+function ${function_name}(${function_args})
+{
$0
}
View
3  php-mode/function
@@ -1,6 +1,7 @@
#contributor : Andrew Gwozdziewycz <web@apgwoz.com>
#name : function ...(...)
# --
-function ${function_name}(${function_args}) {
+function ${function_name}(${function_args})
+{
$0
}
Something went wrong with that request. Please try again.