for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Util
*
* @author Pronamic <[email protected]>
* @copyright 2005-2019 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\Adyen
*/
namespace Pronamic\WordPress\Pay\Gateways\Adyen;
* @author Remco Tolsma
* @version 1.0.0
* @since 1.0.0
class Util {
* Filter null.
* @param array $array Array to filter null values from.
* @return array
public static function filter_null( $array ) {
return array_filter( $array, array( __CLASS__, 'is_not_null' ) );
}
* Check if value is not null.
* @param mixed $value Value.
* @return boolean True if value is not null, false otherwise.
private static function is_not_null( $value ) {
return ( null !== $value );