original_string: public function atomAtDefault($index, $default = null)
      {
          $atoms = $this->atoms();
          if ($index < 0) {
              $index = count($atoms) + $index;
          }
  
          if (array_key_exists($index, $atoms)) {
              return $atoms[$index];
          }
  
          return $default;
      }
code: public function atomAtDefault($index, $default = null)
      {
          $atoms = $this->atoms();
          if ($index < 0) {
              $index = count($atoms) + $index;
          }
  
          if (array_key_exists($index, $atoms)) {
              return $atoms[$index];
          }
  
          return $default;
      }
code_tokens: public function atomAtDefault ( $ index , $ default = null ) { $ atoms = $ this -> atoms ( ) ; if ( $ index < 0 ) { $ index = count ( $ atoms ) + $ index ; } if ( array_key_exists ( $ index , $ atoms ) ) { return $ atoms [ $ index ] ; } return $ default ; }
docstring: Get a single path atom by index, falling back to a default if the index
  is undefined.
  
  @param integer $index   The index to search for.
  @param mixed   $default The default value to return if no atom is defined for the supplied index.
  
  @return mixed The path atom, or $default if no atom is defined for the supplied index.
docstring_tokens: Get a single path atom by index falling back to a default if the index is undefined .