]> khamidou — GitHub mirrors - arcanist.git/commit
Fix linting for spacing around default parameter assignment in function/method declar...
authorJoshua Spence <josh@joshuaspence.com>
Wed, 10 Sep 2014 12:30:01 +0000 (22:30 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 10 Sep 2014 13:02:22 +0000 (23:02 +1000)
commit16770ed2104ec58704c72b2577cc2c6667289faa
tree81a7afc3bb8e52700ebff54b1ddc642f9bcf761b
parent38502ba9102c9dc843b2f9e1eb67231535d46fc2
Fix linting for spacing around default parameter assignment in function/method declaration

Summary: Fix linting for spacing around default parameter assignment in function/method declaration so that `function foo($x = null) {}` is preferred in favor of `function foo($x=null) {}`.

Test Plan: Modified existing unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10429
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/space-around-operators.lint-test