Feature #38970

The use of each is not allowed in loops

Added by Stefano Kowalke 11 months ago. Updated 9 months ago.

Status:Closed Start date:2012-07-15
Priority:Must have Due date:
Assignee:Andy Grunwald % Done:

0%

Category:Loops Spent time: -
Target version:0.0.4
Branch:v4 Tags:
Votes: 0

Description

Implement a sniff which checks for

each
in loops.


Subtasks

Task #38971: Document the sniff in the wikiNew

Associated revisions

Revision ddf894d8
Added by Andy Grunwald 10 months ago

[FEATURE] The use of each is not allowed in loops

The use of the PHP function "each()" is not allowed in loops.
Use foreach instead.

Change-Id: Ibd72a5f33ef91fde566ea0620d2a45931d6d7d31
Fixes: #38970
Releases: 0.0.4

History

Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14431

Updated by Andy Grunwald 10 months ago

  • Assignee set to Andy Grunwald

The UnitTest and Sniff applies the PEAR CGL.
This is the one reason why there is no TYPO3 doc block comment.
The other reason is, that we code stuff for an external tool.
Yes, it is part of the TYPO3 QA-Stuff, but it not under the TYPO3 licensing stuff and not part of TYPO3 core or something like this.

Updated by Stefano Kowalke 9 months ago

  • Status changed from Under Review to Closed

Also available in: Atom PDF