original_string: public static function inList($check, array $list, $caseInsensitive = false)
      {
          if ($caseInsensitive) {
              $list = array_map('mb_strtolower', $list);
              $check = mb_strtolower($check);
          } else {
              $list = array_map('strval', $list);
          }
  
          return in_array((string)$check, $list, true);
      }
code: public static function inList($check, array $list, $caseInsensitive = false)
      {
          if ($caseInsensitive) {
              $list = array_map('mb_strtolower', $list);
              $check = mb_strtolower($check);
          } else {
              $list = array_map('strval', $list);
          }
  
          return in_array((string)$check, $list, true);
      }
code_tokens: public static function inList ( $ check , array $ list , $ caseInsensitive = false ) { if ( $ caseInsensitive ) { $ list = array_map ( 'mb_strtolower' , $ list ) ; $ check = mb_strtolower ( $ check ) ; } else { $ list = array_map ( 'strval' , $ list ) ; } return in_array ( ( string ) $ check , $ list , true ) ; }
docstring: Checks if a value is in a given list. Comparison is case sensitive by default.
  
  @param string $check Value to check.
  @param array $list List to check against.
  @param bool $caseInsensitive Set to true for case insensitive comparison.
  @return bool Success.
docstring_tokens: Checks if a value is in a given list . Comparison is case sensitive by default .