original_string: public function extractCalls()
      {
          $calls = array();
          
          if ('form' == $this->callType) {
              $calls[] = new Call($this->post, 'form');
          } else {                        
              $decoded = json_decode($this->rawPost);
              $decoded = !is_array($decoded) ? array($decoded) : $decoded;
              
              array_walk_recursive($decoded, array($this, 'parseRawToArray'));
  
              if ($this->requestDecode)
                  array_walk_recursive($decoded, array($this, 'decode'));
  
              foreach ($decoded as $call) {
                  $calls[] = new Call((array)$call, 'single');
              }
          }
          
          return $calls;
      }
code: public function extractCalls()
      {
          $calls = array();
          
          if ('form' == $this->callType) {
              $calls[] = new Call($this->post, 'form');
          } else {                        
              $decoded = json_decode($this->rawPost);
              $decoded = !is_array($decoded) ? array($decoded) : $decoded;
              
              array_walk_recursive($decoded, array($this, 'parseRawToArray'));
  
              if ($this->requestDecode)
                  array_walk_recursive($decoded, array($this, 'decode'));
  
              foreach ($decoded as $call) {
                  $calls[] = new Call((array)$call, 'single');
              }
          }
          
          return $calls;
      }
code_tokens: public function extractCalls ( ) { $ calls = array ( ) ; if ( 'form' == $ this -> callType ) { $ calls [ ] = new Call ( $ this -> post , 'form' ) ; } else { $ decoded = json_decode ( $ this -> rawPost ) ; $ decoded = ! is_array ( $ decoded ) ? array ( $ decoded ) : $ decoded ; array_walk_recursive ( $ decoded , array ( $ this , 'parseRawToArray' ) ) ; if ( $ this -> requestDecode ) array_walk_recursive ( $ decoded , array ( $ this , 'decode' ) ) ; foreach ( $ decoded as $ call ) { $ calls [ ] = new Call ( ( array ) $ call , 'single' ) ; } } return $ calls ; }
docstring: Extract the ExtDirect calls from request.
  
  @return array
docstring_tokens: Extract the ExtDirect calls from request .