Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
38ac1327
Commit
38ac1327
authored
Sep 06, 2017
by
catch
Browse files
Issue
#2901791
by mfernea: Fix 'Squiz.ControlStructures.ForLoopDeclaration' coding standard
parent
32879bbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
View file @
38ac1327
...
...
@@ -195,7 +195,7 @@ protected function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) {
}
$x1
=
$xoff
+
(
int
)((
$numer
+
(
$xlim
-
$xoff
)
*
$chunk
)
/
$nchunks
);
for
(
;
$x
<
$x1
;
$x
++
)
{
for
(;
$x
<
$x1
;
$x
++
)
{
$line
=
$flip
?
$this
->
yv
[
$x
]
:
$this
->
xv
[
$x
];
if
(
empty
(
$ymatches
[
$line
]))
{
continue
;
...
...
core/phpcs.xml.dist
View file @
38ac1327
...
...
@@ -143,6 +143,14 @@
</rule>
<!-- Squiz sniffs -->
<rule
ref=
"Squiz.ControlStructures.ForLoopDeclaration"
/>
<!-- Disable some error messages that we already cover. -->
<rule
ref=
"Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterOpen"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"Squiz.ControlStructures.ForLoopDeclaration.SpacingBeforeClose"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"Squiz.PHP.LowercasePHPFunctions"
/>
<rule
ref=
"Squiz.Strings.ConcatenationSpacing"
>
<properties>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment