mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Correct line length and endings
This commit is contained in:
parent
dde90dc346
commit
e07b14f5bc
@ -122,6 +122,7 @@ class CmsFormsContext extends BehatContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
/**
|
/**
|
||||||
* Checks formatting in the HTML field, by analyzing the HTML node surrounding
|
* Checks formatting in the HTML field, by analyzing the HTML node surrounding
|
||||||
* the text for certain properties.
|
* the text for certain properties.
|
||||||
@ -131,8 +132,7 @@ class CmsFormsContext extends BehatContext {
|
|||||||
*
|
*
|
||||||
* @todo Use an actual DOM parser for more accurate assertions
|
* @todo Use an actual DOM parser for more accurate assertions
|
||||||
*
|
*
|
||||||
* @Given /^"(?P<text>([^"]*))" in the "(?P<field>([^"]*))" HTML field
|
* @Given /^"(?P<text>([^"]*))" in the "(?P<field>([^"]*))" HTML field should(?P<negate>(?: not)?) be (?P<formatting>(.*))$/
|
||||||
* should(?P<negate>(?: not)?) be (?P<formatting>(.*))$/
|
|
||||||
*/
|
*/
|
||||||
public function stepContentInHtmlFieldShouldHaveFormatting($text, $field, $negate, $formatting) {
|
public function stepContentInHtmlFieldShouldHaveFormatting($text, $field, $negate, $formatting) {
|
||||||
$page = $this->getSession()->getPage();
|
$page = $this->getSession()->getPage();
|
||||||
@ -163,6 +163,7 @@ class CmsFormsContext extends BehatContext {
|
|||||||
call_user_func($assertFn, 'text-align: right;', $matchedNode->getAttribute('style'));
|
call_user_func($assertFn, 'text-align: right;', $matchedNode->getAttribute('style'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects the first textual match in the HTML editor. Does not support
|
* Selects the first textual match in the HTML editor. Does not support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user