summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBojan Zivanovic2018-11-29 11:42:25 (GMT)
committerBojan Zivanovic2018-11-29 11:42:25 (GMT)
commit8bbfb2646f1087af938e605fa8571e9d7191f8eb (patch)
treed52db01dfa331ea52db44e43c476235f62c11dc2
parent5d27521b778bb067f5143d640b3152d25dd02b50 (diff)
Update for phpcs 3.x
-rw-r--r--address.post_update.php1
-rw-r--r--phpcs.xml9
2 files changed, 8 insertions, 2 deletions
diff --git a/address.post_update.php b/address.post_update.php
index 547a2c7..14d9e45 100644
--- a/address.post_update.php
+++ b/address.post_update.php
@@ -43,7 +43,6 @@ function address_post_update_convert_names_subdivisions(&$sandbox = NULL) {
* @} End of "addtogroup updates-8.x-1.0-rc1".
*/
-
/**
* Clear caches to receive the new country list.
*/
diff --git a/phpcs.xml b/phpcs.xml
index aef05f5..22af5ce 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -18,12 +18,19 @@
<rule ref="Drupal.Files.LineLength.TooLong">
<severity>0</severity>
</rule>
- <rule ref="Drupal.Array.Array.LongLineDeclaration">
+ <rule ref="Drupal.Arrays.Array.LongLineDeclaration">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.VariableComment.VarOrder">
<severity>0</severity>
</rule>
+ <rule ref="Drupal.Semantics.FunctionT.NotLiteralString">
+ <severity>0</severity>
+ </rule>
+ <!-- Complains about example code. -->
+ <rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found">
+ <severity>0</severity>
+ </rule>
<!-- Complains about '#element_validate callback:' -->
<rule ref="Drupal.Commenting.DocComment.ShortNotCapital">
<severity>0</severity>