PHP Weekly<p>Strategy Pattern: How I refactored my if/else monster into clean and easy testable code 🥳</p><p><a href="https://medium.com/@ingelbrechtrobin/strategy-pattern-because-your-giant-if-statement-is-crying-for-help-48e979d9a399" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medium.com/@ingelbrechtrobin/s</span><span class="invisible">trategy-pattern-because-your-giant-if-statement-is-crying-for-help-48e979d9a399</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://medium.com/%40ingelbrechtrobin/strategy-pattern-because-your-giant-if-statement-is-crying-for-help-48e979d9a399" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://medium.com/</span><span class="invisible">%40ingelbrechtrobin/strategy-pattern-because-your-giant-if-statement-is-crying-for-help-48e979d9a399</span></a></p><p><a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>