original_string: protected function flattenList($value)
      {
          if ($value[0] === Type::T_LIST && count($value[2]) === 1) {
              return $this->flattenList($value[2][0]);
          }
  
          return $value;
      }
code: protected function flattenList($value)
      {
          if ($value[0] === Type::T_LIST && count($value[2]) === 1) {
              return $this->flattenList($value[2][0]);
          }
  
          return $value;
      }
code_tokens: protected function flattenList ( $ value ) { if ( $ value [ 0 ] === Type :: T_LIST && count ( $ value [ 2 ] ) === 1 ) { return $ this -> flattenList ( $ value [ 2 ] [ 0 ] ) ; } return $ value ; }
docstring: Turn list of length 1 into value type
  
  @param array $value
  
  @return array
docstring_tokens: Turn list of length 1 into value type