[TASK] Fix CGL violations against CharacterAfterPHPClosingTag

Fix CGL violations against CharacterAfterPHPClosingTag

Change-Id: Ie2794a181e38c401b16a0c39cdb43bf6b406b166
Resolves: #38568
Releases: 6.0
Reviewed-on: http://review.typo3.org/12523
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Fix CGL violations against CharacterAfterPHPClosingTag

Fix CGL violations against CharacterAfterPHPClosingTag

Change-Id: If4d8a489228f0bfabad92aaf0d8e17f6ad7728e3
Resolves: #38569
Releases: 6.0
Reviewed-on: http://review.typo3.org/12524
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[BUGFIX] FLUIDTEMPLATE - Serialization of 'Closure' is not allowed

The Fluid TemplateCompiler uses closures to store a cached
variant of the accordant Fluid node. Several calls in Fluid
use serialize() and also will process those closures, which
will end up in a PHP fatal error.

The most obvious part is the object manager which will then
try to serialize all objects - including closures - that are
available in the object container.

The problem can be circumvented by using accordant magic PHP
methods like __sleep() and __wakeup() to ignore those properties.

Change-Id: I70e78a09b2a118cc26f099063743c530f0addc72
Fixes: #32295
Related: #36820
Releases: 6.0, 4.7, 4.6
[BUGFIX] Remove t3ver_swapmode code blocks

The different ways of versioning (element, page, branch) have
been defined to element versioning some TYPO3 version ago. With
TYPO3 4.7, those settings, especially the handling of the field
t3ver_swapmode has been removed from t3lib_TCEmain.

Since the default value of t3ver_swapmode is not -1 anymore,
but 0 instead, this will lead to inconsistent side-effects.

The solution is to remove all occurrences.

Change-Id: Iced3f3ee35165f43040d878ee24fea0fe63a3a31
Fixes: #38607
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/12554
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Content elements disappear on publishing a page

The different ways of versioning (element, page, branch) have
been defined to element versioning some TYPO3 version ago. With
TYPO3 4.7, those settings, especially the handling of the field
t3ver_swapmode has been removed from t3lib_TCEmain.

This leads to a chain of problems since the value of that field
will now be "0" per default which means "page versioning".

Change-Id: Ifa4dd51a02705b29c8b91ba428b18aa976a9e1de
Fixes: #38063
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/12533
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[TASK] Fix CGL violations against ClassDocComment

Fix CGL violations against ClassDocComment

Change-Id: I081a6e7420947565f275ce2f16c21beceb643e6d
Resolves: #38598
Releases: 6.0
Reviewed-on: http://review.typo3.org/12544
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[TASK] Fix CGL violations against ClassDocComment

Fix CGL violations against ClassDocComment

Change-Id: I6661e73ad5cff785b3d52ae3e34da98fa1a0c4c5
Resolves: #38599
Releases: 6.0
Reviewed-on: http://review.typo3.org/12545
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[TASK] Fix CGL violations against SuperfluousWhitespace

Fix CGL violations against SuperfluousWhitespace

Change-Id: Id4dff5f2aee3412ccb3f601c579907aea4c5029e
Resolves: #38817
Releases: 6.0
[TASK] Fix CGL violations against SuperfluousWhitespace

Fix CGL violations against SuperfluousWhitespace

Change-Id: Iec94ae6339a6f3136eb3495be4e57f721eb455ef
Resolves: #38818
Releases: 6.0
[TASK] Fix CGL violations against SuperfluousWhitespace

Fix CGL violations against SuperfluousWhitespace

Change-Id: I3a9eabf0d758cbcfa612f49f8e87bc7d72beb74e
Resolves: #38815
Releases: 6.0
Reviewed-on: http://review.typo3.org/12723
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Fix CGL violations against SuperfluousWhitespace

Fix CGL violations against SuperfluousWhitespace

Change-Id: Ife95d3c3bb82f1c71816d90f1956bb17f03e46ac
Resolves: #38816
Releases: 6.0
Reviewed-on: http://review.typo3.org/12724
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Fix unit test for NumberRangeValidator

While back porting changes (#35255) a unit test broke in
Validation_Validator_BeforeExtbase14_NumberRangeValidatorTest.

Change-Id: I31309474866e5edae747ea420e94e65d1638758f
Resolves: #38426
Releases: 6.0
[BUGFIX] Return NULL instead of empty string in Localization::translate()

Localization::translate() returns an empty string instead of NULL
if no translation string is found but arguments are given

Change-Id: Id21ca9bc59a59d6115dc70decf2294497d871a81
Fixes: #34874
Related: #34877
Releases: 6.0, 4.7, 1.4, 1.3
[BUGFIX] Priority of CLI request handler should be lower

Allow rendering of plugin content during tx_crawler call
if option "Make direct requests" is enabled.

Change-Id: I79f992d94924e1b069486715bfa20808cd84588e
Fixes: #34691
Releases: 6.0,4.7
Merge "[BUGFIX] Priority of CLI request handler should be lower"
[BUGFIX] CLI argument handling chokes on = use

This is a backport of the fix done in FLOW3.
The corresponding FLOW3 ticket is #30493

With this fix the last argument may use the equals sign (=)
again to separate between argument name and value.

Besides writing an additional test case which reproduces the issue,
the other test cases have been strengthened by replacing assertEquals()
by assertSame().

Change-Id: I7d7fa4e5f18a73308cc564db152fd31ab3c4e478
Fixes: #36745, #35207
Relates: #30493
Releases: 6.0, 4.7, 1.4
Reviewed-on: http://review.typo3.org/10919
Tested-by: Christian Kuhn
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[TASK] Harmonize coding style of if constructs

This corrects the whitespaces in if statements for Extbase.

Change-Id: Ie2266202ca819b78d23d7e28cb6c359cf691eee0
Fixes: #37805
Releases: 6.0
Reviewed-on: http://review.typo3.org/12957
Reviewed-by: Felix Oertel
Tested-by: Felix Oertel
[BUGFIX] Fix the PhpDoc comments of GroupedForViewHelperTest

Fix a copy'n'paste error in the class documentation comment and
add the missing "@" in an @var.

Change-Id: Iaa1d594df08913b11192f680f27e03ff43953218
Releases: 6.0
Fixes: #38935
Reviewed-on: http://review.typo3.org/12783
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Remove trailing whitespace

There must be no empty lines after the closing
PHP tag. Empty lines after closing tags break
output compression in PHP and/or result in AJAX
errors.

Change-Id: I0484ca29d8134d0828cf30880d5aafd43ed9d78e
Resolves: #36076
Releases: 6.0
Reviewed-on: http://review.typo3.org/10499
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Daniel Lorenz
Tested-by: Daniel Lorenz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[FEATURE] CurrencyViewhelper can prepend the currency sign

With the flag $prependCurrency = TRUE the currency sign can be prepended
instead of appended (e.g. CHF 123.00)
The additional parameter $separateCurrency determines whether the currency
sign should be separated by a space (e.g. $123.00).

Change-Id: I5dd13de5fd40ba165fdc2dbfa17c7a6d224dc296
Fixes: #33854
Releases: 1.4
FLOW3 Issue: #36014
Reviewed-on: http://review.typo3.org/10444
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Matthias Nitsch
Reviewed-by: Daniel Lorenz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn