pineco.de
Little Snippets to Keep Your Code Cleaner - Pine
Sometimes it’s harder to keep your code clean and readable than to implement some architecture in your application. We collected some snippets that may help you to refactor your code. Array Casting It happens quite often, we accept a parameter both as a string or as an array. Instead of checking the type, then convert …