src/Client/KeenIOClient.php
private static function combineEventCollectionArgs(array $args)
    {
        $formattedArgs = array();

        if (isset($args[0]) && is_string($args[0])) {
            $formattedArgs['event_collection'] = $args[0];

            if (isset($args[1]) && is_array($args[1])) {
                $formattedArgs = array_merge($formattedArgs, $args[1]);
            }
        } elseif (isset($args[0]) && is_array($args[0])) {
            $formattedArgs = $args[0];
        }

        return $formattedArgs;
    }
private static function combineEventCollectionArgs(array $args)
    {
        $formattedArgs = array();

        if (isset($args[0]) && is_string($args[0])) {
            $formattedArgs['event_collection'] = $args[0];

            if (isset($args[1]) && is_array($args[1])) {
                $formattedArgs = array_merge($formattedArgs, $args[1]);
            }
        } elseif (isset($args[0]) && is_array($args[0])) {
            $formattedArgs = $args[0];
        }

        return $formattedArgs;
    }
private static function combineEventCollectionArgs ( array $ args ) { $ formattedArgs = array ( ) ; if ( isset ( $ args [ 0 ] ) && is_string ( $ args [ 0 ] ) ) { $ formattedArgs [ 'event_collection' ] = $ args [ 0 ] ; if ( isset ( $ args [ 1 ] ) && is_array ( $ args [ 1 ] ) ) { $ formattedArgs = array_merge ( $ formattedArgs , $ args [ 1 ] ) ; } } elseif ( isset ( $ args [ 0 ] ) && is_array ( $ args [ 0 ] ) ) { $ formattedArgs = $ args [ 0 ] ; } return $ formattedArgs ; }
Translate a set of args to merge a lone event_collection into
an array with the other params

@param array $args Arguments to be formatted

@return array A single array with event_collection merged in
@access private
Translate a set of args to merge a lone event_collection into an array with the other params