original_string: protected function getTtlAndKey(array &$args)/*# : array */
      {
          if (is_numeric($args[0])) {
              $ttl = (int) array_shift($args);
              $key = $this->generateKey($args);
          } else {
              $key = $this->generateKey($args);
              $ttl = $this->ttl;
          }
          return [$ttl, $key];
      }
code: protected function getTtlAndKey(array &$args)/*# : array */
      {
          if (is_numeric($args[0])) {
              $ttl = (int) array_shift($args);
              $key = $this->generateKey($args);
          } else {
              $key = $this->generateKey($args);
              $ttl = $this->ttl;
          }
          return [$ttl, $key];
      }
code_tokens: protected function getTtlAndKey ( array & $ args ) /*# : array */ { if ( is_numeric ( $ args [ 0 ] ) ) { $ ttl = ( int ) array_shift ( $ args ) ; $ key = $ this -> generateKey ( $ args ) ; } else { $ key = $ this -> generateKey ( $ args ) ; $ ttl = $ this -> ttl ; } return [ $ ttl , $ key ] ; }
docstring: Get TTL and unique key
  
  @param  array &$args
  @return array
  @access protected
docstring_tokens: Get TTL and unique key