Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/javelin/Javelin.php
<?php | <?php | ||||
final class Javelin { | final class Javelin { | ||||
public static function initBehavior($behavior, array $config = array()) { | public static function initBehavior( | ||||
$behavior, | |||||
array $config = array(), | |||||
$source_name = 'phabricator') { | |||||
epriestley: In this codebase, prefer `$source_name = 'phabricator'` to establish a default scalar parameter… | |||||
Not Done Inline ActionsBy convention, indent two spaces. epriestley: By convention, indent two spaces. | |||||
$response = CelerityAPI::getStaticResourceResponse(); | $response = CelerityAPI::getStaticResourceResponse(); | ||||
$response->initBehavior($behavior, $config); | |||||
$response->initBehavior($behavior, $config, $source_name); | |||||
} | } | ||||
} | } |
In this codebase, prefer $source_name = 'phabricator' to establish a default scalar parameter value (i.e., an explicit default). This: