No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
da95f7f
... +33 ...
e3b64d5
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
13 | 13 | use SilverStripe\ORM\DataExtension; |
|
14 | 14 | use SilverStripe\ORM\DataQuery; |
|
15 | 15 | use SilverStripe\ORM\FieldType\DBDatetime; |
|
16 | + | use SilverStripe\ORM\FieldType\DBHTMLText; |
|
16 | 17 | use SilverStripe\ORM\Queries\SQLSelect; |
|
17 | 18 | use SilverStripe\Security\Member; |
|
18 | 19 | use SilverStripe\Security\Permission; |
126 | 127 | 'DesiredPublishDate', |
|
127 | 128 | _t('WorkflowEmbargoExpiryExtension.REQUESTED_PUBLISH_DATE', 'Requested publish date') |
|
128 | 129 | )->setRightTitle( |
|
129 | - | _t( |
|
130 | + | DBHTMLText::create()->setValue(_t( |
|
130 | 131 | 'WorkflowEmbargoExpiryExtension.REQUESTED_PUBLISH_DATE_RIGHT_TITLE', |
|
131 | 132 | 'To request this page to be <strong>published immediately</strong> ' |
|
132 | 133 | . 'leave the date and time fields blank' |
|
133 | - | ) |
|
134 | + | )) |
|
134 | 135 | ), |
|
135 | 136 | $ut = DatetimeField::create( |
|
136 | 137 | 'DesiredUnPublishDate', |
|
137 | 138 | _t('WorkflowEmbargoExpiryExtension.REQUESTED_UNPUBLISH_DATE', 'Requested un-publish date') |
|
138 | 139 | )->setRightTitle( |
|
139 | - | _t( |
|
140 | + | DBHTMLText::create()->setValue(_t( |
|
140 | 141 | 'WorkflowEmbargoExpiryExtension.REQUESTED_UNPUBLISH_DATE_RIGHT_TITLE', |
|
141 | 142 | 'To request this page to <strong>never expire</strong> leave the date and time fields blank' |
|
142 | - | ) |
|
143 | + | )) |
|
143 | 144 | ), |
|
144 | 145 | DatetimeField::create( |
|
145 | 146 | 'PublishOnDate', |
430 | 430 | $tmp = []; |
|
431 | 431 | ||
432 | 432 | foreach ($defs as $def) { |
|
433 | - | $parts = preg_split("#\s#", $def, -1, PREG_SPLIT_NO_EMPTY); |
|
433 | + | $parts = preg_split("#\s#", preg_quote($def, '#'), -1, PREG_SPLIT_NO_EMPTY); |
|
434 | 434 | $lastPart = array_pop($parts); |
|
435 | 435 | $match = implode(' ', $parts); |
|
436 | 436 | // @todo do all this in one preg_match_all() call |
Learn more Showing 5 files with coverage changes found.
src/Extensions/WorkflowEmbargoExpiryExtension.php
src/Jobs/WorkflowPublishTargetJob.php
src/Actions/PublishItemWorkflowAction.php
src/Services/WorkflowService.php
src/Extensions/WorkflowApplicable.php
Files | Complexity | Coverage |
---|---|---|
src | ø | -5.75% 16.40% |
Project Totals (35 files) | 870 | 16.40% |
e3b64d5
140e79b
#437
8c65f00
90ab9c6
#429
f3cae3f
4e32a96
#428
d8e4d38
8a64ebb
36e3b04
#427
a69fda5
7a52cd7
eca47d0
6f5a523
ed34f33
c28035b
cc1dbf1
#426
669ce19
1b1f166
754cedd
59a5030
#425
5fa29f0
#424
a166c04
f0ec1b5
71e1351
#423
314cff6
#421
468f939
9c58489
#422
a77b358
#421
e20545d
#415
c485a5a
#409
635d744
#410
e07d033
#408
27fe2f1
#411
ff31bc4
da95f7f