original_string: protected function _parseNestedValues($values)
      {
          foreach ($values as $key => $value) {
              if ($value === '1') {
                  $value = true;
              }
              if ($value === '') {
                  $value = false;
              }
              unset($values[$key]);
              if (strpos($key, '.') !== false) {
                  $values = Hash::insert($values, $key, $value);
              } else {
                  $values[$key] = $value;
              }
          }
  
          return $values;
      }
code: protected function _parseNestedValues($values)
      {
          foreach ($values as $key => $value) {
              if ($value === '1') {
                  $value = true;
              }
              if ($value === '') {
                  $value = false;
              }
              unset($values[$key]);
              if (strpos($key, '.') !== false) {
                  $values = Hash::insert($values, $key, $value);
              } else {
                  $values[$key] = $value;
              }
          }
  
          return $values;
      }
code_tokens: protected function _parseNestedValues ( $ values ) { foreach ( $ values as $ key => $ value ) { if ( $ value === '1' ) { $ value = true ; } if ( $ value === '' ) { $ value = false ; } unset ( $ values [ $ key ] ) ; if ( strpos ( $ key , '.' ) !== false ) { $ values = Hash :: insert ( $ values , $ key , $ value ) ; } else { $ values [ $ key ] = $ value ; } } return $ values ; }
docstring: parses nested values out of keys.
  
  @param array $values Values to be exploded.
  @return array Array of values exploded
docstring_tokens: parses nested values out of keys .