[TASK] Refactor cycle usage

Use the same $cycle value in 'cycle' assignment and isOdd / isEven calulation.
The change only brings better readability into the code. In case anybody reads it one might see clearer that $cycle % 2 leads to an even number and odd vice versa.
Merge pull request #699 from coding46/patch-1

[TASK] Refactor cycle usage