Skip to content

Clean up returns. #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2019

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