original_string: protected function castArrayValuesToSimpleTypes(array $data)
      {
          foreach ($data as $key => $item) {
              if (is_array($item)) {
                  $data[$key] = $this->castArrayValuesToSimpleTypes($item);
              } elseif (is_object($item)) {
                  $data[$key] = $this->convertObjectToSimpleType($item);
              }
          }
  
          return $data;
      }
code: protected function castArrayValuesToSimpleTypes(array $data)
      {
          foreach ($data as $key => $item) {
              if (is_array($item)) {
                  $data[$key] = $this->castArrayValuesToSimpleTypes($item);
              } elseif (is_object($item)) {
                  $data[$key] = $this->convertObjectToSimpleType($item);
              }
          }
  
          return $data;
      }
code_tokens: protected function castArrayValuesToSimpleTypes ( array $ data ) { foreach ( $ data as $ key => $ item ) { if ( is_array ( $ item ) ) { $ data [ $ key ] = $ this -> castArrayValuesToSimpleTypes ( $ item ) ; } elseif ( is_object ( $ item ) ) { $ data [ $ key ] = $ this -> convertObjectToSimpleType ( $ item ) ; } } return $ data ; }
docstring: Cast values of an array to simple types
  
  @param array $data
  @return array
docstring_tokens: Cast values of an array to simple types