comments.expect.txt 980 B

12345678910111213141516171819
  1. <span class="hljs-meta">&lt;?php</span>
  2. <span class="hljs-comment">/**
  3. * <span class="hljs-doctag">@param</span> int $a
  4. * <span class="hljs-doctag">@return</span> bool
  5. */</span>
  6. <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">isEven</span><span class="hljs-params">($a)</span> </span>{
  7. <span class="hljs-keyword">return</span> ($a % <span class="hljs-number">2</span>) === <span class="hljs-number">0</span>;
  8. }
  9. <span class="hljs-comment">/**
  10. * <span class="hljs-doctag">TODO:</span> Rely on isEven, but do not highlight bug.
  11. *
  12. * <span class="hljs-doctag">@param</span> int $a
  13. * <span class="hljs-doctag">@return</span> bool
  14. */</span>
  15. <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">isOdd</span><span class="hljs-params">($a)</span> </span>{
  16. <span class="hljs-keyword">return</span> ($a % <span class="hljs-number">2</span>) === <span class="hljs-number">1</span>;
  17. }