Exclude globals from camel case conversion

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-06 12:52:41 +01:00
committed by Jan Jakeš
parent 94afd66325
commit 6522635dc7
14 changed files with 59 additions and 57 deletions

View File

@@ -56,12 +56,12 @@ class PostTransformerContentsExtractor {
*
* https://mailpoet.atlassian.net/browse/MAILPOET-1365
*/
global $contentWidth; // default is NULL
global $content_width; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps, default is NULL
$contentWidthCopy = $contentWidth;
$contentWidth = Env::NEWSLETTER_CONTENT_WIDTH;
$contentWidthCopy = $content_width; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
$content_width = Env::NEWSLETTER_CONTENT_WIDTH; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
$imageInfo = $this->wp->wpGetAttachmentImageSrc($id, 'mailpoet_newsletter_max');
$contentWidth = $contentWidthCopy;
$content_width = $contentWidthCopy; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
return $imageInfo;
}