• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
particleflux Avatar
Name:Stefan Linke
Clan:@hackthe.codes
Member Since:Jul 2017
Last Seen:Jun 2025
Profiles:
Following:4
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (43)
  • Needs Resolution
  • Custom User Avatar
    • particleflux
    • commented on ""Find the smallest integer in the array" PHP Translation"
    • 2 years ago

    Yes, I know that, I was just wondering whether it's worth fixing it in one PHP version only.

    Funny enough, now that I tested around with a changed version of the random test, I noticed it did not actually work anyway, at all.

    The test method providing the real solution was called without $this, and named the same as the real solution (except character case) - which seemed to have called the real solution twice, for $expected and $actual, making the test effectively useless.

  • Custom User Avatar
    • particleflux
    • commented on ""Find the smallest integer in the array" PHP Translation"
    • 2 years ago

    While I would technically agree with that, and potentially drop that echo completely without replacement, this has not been added in this PHP8 upgrade translation. If it were to be dropped/replaced, I guess it should be dropped in all versions?

  • Custom User Avatar
    • particleflux
    • created a suggestion for "Grasshopper - Terminal Game #1" kata
    • 2 years ago

    Translated to PHP

  • Custom User Avatar
    • particleflux
    • created a suggestion for "Perimeter sequence" kata
    • 2 years ago

    Go translation

  • Custom User Avatar
    • particleflux
    • commented on "Coordinates Validator" kata
    • 2 years ago

    If you surround your code with three backticks (```), it will put it in a codeblock, which is far easier readable.

    See: https://docs.codewars.com/references/markdown#displaying-code

  • Custom User Avatar
    • particleflux
    • commented on ""Convert string to camel case" PHP Translation"
    • 2 years ago

    Added.
    Also added a specific test case to clarify that uppercase letters not at the beginning of a word would stay uppercase.

  • Custom User Avatar
    • particleflux
    • created a suggestion for "Coordinates Validator" kata
    • 2 years ago

    Added PHP 8.0 support

    This also fixes a bug in the solution (see comment on the fork)

  • Custom User Avatar
    • particleflux
    • commented on ""Coordinates Validator" PHP Translation"
    • 2 years ago

    Added PHP 8.0 support

    • add PHP opening tags, where suggested by List of PHP Kata to Update
    • add required import for PHPUnit

    Also, fixed a bug in the solution which only got visible since PHP 8.0, due to slight changes in string to number conversion:
    It checked against the wrong element of the matches array, the element at offset 0 is the whole matched string, not the first capture group. So, both checks were using elements off by one.

    A small additional simplification, since the regex only captures the number itself, without the optional -, there is no need to check for negative threshold.

  • Custom User Avatar
    • particleflux
    • created a suggestion for "Convert string to camel case" kata
    • 2 years ago

    Added PHP 8.0 support

  • Custom User Avatar
    • particleflux
    • commented on ""Convert string to camel case" PHP Translation"
    • 2 years ago

    Added PHP 8.0 support

    • add PHP opening tags, where suggested by List of PHP Kata to Update
    • add required import for PHPUnit
    • rename tests to match required naming with PHPUnit 9.x
  • Custom User Avatar
    • particleflux
    • created a suggestion for "extract portion of file name" kata
    • 2 years ago

    Added PHP 8.0 support

  • Custom User Avatar
    • particleflux
    • commented on ""extract file name" PHP Translation"
    • 2 years ago

    Added PHP 8.0 support

    • add PHP opening tags, where suggested by List of PHP Kata to Update
    • add required import for PHPUnit
    • rename tests to match required naming with PHPUnit 9.x
    • replace deprecated string offset access syntax with curly braces
  • Custom User Avatar
    • particleflux
    • created a suggestion for "Find the smallest integer in the array" kata
    • 2 years ago

    Added PHP 8.0 support

  • Custom User Avatar
    • particleflux
    • commented on ""Find the smallest integer in the array" PHP Translation"
    • 2 years ago

    Added PHP 8.0 support

    • add PHP opening tags, where suggested by List of PHP Kata to Update
    • add required import for PHPUnit
    • fix assertion $expected and $actual order (see PHPUnit docs)
  • Custom User Avatar
    • particleflux
    • created a suggestion for "Pong! [Basics]" kata
    • 2 years ago

    Added PHP 8.0 support

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...