Skip to content

Conversation

phatsk
Copy link

@phatsk phatsk commented Aug 1, 2019

  • Remove extra space after '@return'
  • Don't capture '{' if return type and '{' are on the same line.

Example:

class Test {
	private function heyo():array {

	}

	abstract public function get_thing() :string;
}

function blah() : bool {

}

function foo() {

}

function bar() :int
{

}

Result:

class Test {
	/**
	 * heyo
	 *
	 *
	 * @return array
	 */
	private function heyo():array {

	}

	/**
	 * get_thing
	 *
	 *
	 * @return string
	 */
	abstract public function get_thing() :string;

/**
 * blah
 *
 * @access public
 *
 * @return bool
 */
function blah() : bool {

}

/**
 * foo
 *
 * @access public
 *
 * @return void
 */
function foo() {

}

/**
 * bar
 *
 * @access public
 *
 * @return int
 */
function bar() :int
{

}

- Remove extra space after '@return'
- Don't capture '{' if return type and '{' are on the same line.
@sumpygump sumpygump merged commit b663d2c into sumpygump:master Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants