Commit fd8d9839 authored by alexpott's avatar alexpott

Issue #2901722 by mfernea: Fix 'Squiz.Functions.FunctionDeclarationArgumentSpacing' coding standard

parent 7b05eebf
......@@ -582,7 +582,7 @@ public static function truncate($string, $max_length, $wordsafe = FALSE, $add_el
* Returns < 0 if $str1 is less than $str2; > 0 if $str1 is greater than
* $str2, and 0 if they are equal.
*/
public static function strcasecmp($str1 , $str2) {
public static function strcasecmp($str1, $str2) {
return strcmp(static::strtoupper($str1), static::strtoupper($str2));
}
......
......@@ -73,7 +73,7 @@ protected function _start_block($header) {
/**
* {@inheritdoc}
*/
protected function _lines($lines, $prefix=' ', $color='white') {
protected function _lines($lines, $prefix = ' ', $color = 'white') {
}
/**
......
......@@ -71,7 +71,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info , ModerationInformationInterface $moderation_information) {
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info, ModerationInformationInterface $moderation_information) {
$this->entityTypeManager = $entity_type_manager;
$this->bundleInfo = $bundle_info;
$this->moderationInformation = $moderation_information;
......
......@@ -276,6 +276,14 @@
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine">
<severity>0</severity>
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
<properties>
<property name="equalsSpacing" value="1"/>
</properties>
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.NoSpaceBeforeArg">
<severity>0</severity>
</rule>
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment