99"
1010" let g:phpcomplete_relax_static_constraint = 1/0 [default 0]
1111" Enables completion for non-static methods when completing for static context (::).
12- " This generates E_STRICT level warning, but php calls these methods nontheless .
12+ " This generates E_STRICT level warning, but php calls these methods nonetheless .
1313"
1414" let g:phpcomplete_complete_for_unknown_classes = 1/0 [default 0]
1515" Enables completion of variables and functions in "everything under the sun" fashion
2828" This option controls the number of characters the user needs to type before
2929" the tags will be searched for namespaces and classes in typed out namespaces in
3030" "use ..." context. Setting this to 0 is not recommended because that means the code
31- " have to scan every tag, and vim's taglist() function runs extremly slow with a
31+ " have to scan every tag, and vim's taglist() function runs extremely slow with a
3232" "match everything" pattern.
3333"
3434" let g:phpcomplete_parse_docblock_comments = 1/0 [default 0]
@@ -263,7 +263,7 @@ function! phpcomplete#CompleteUse(base) " {{{
263263 call add (no_namespace_matches, {' word' : namespace_for_class.' \' .tag .name, ' kind' : tag .kind, ' menu' : tag .filename, ' info' : tag .filename })
264264 endif
265265 endfor
266- " if it seems that the tags file have namespace informations we can safely throw
266+ " if it seems that the tags file have namespace information we can safely throw
267267 " away namespaceless tag matches since we can be sure they are invalid
268268 if patched_ctags_detected
269269 no_namespace_matches = []
@@ -805,7 +805,7 @@ function! phpcomplete#CompleteClassName(base, kinds, current_namespace, imports)
805805 endif
806806 endfor
807807
808- " resolve the typed in part with namespaces (if theres a \ in it)
808+ " resolve the typed in part with namespaces (if there's a \ in it)
809809 let [tag_match_pattern, namespace_for_class] = phpcomplete#ExpandClassName (a: base , a: current_namespace , a: imports )
810810
811811 let tags = []
@@ -921,11 +921,11 @@ function! s:getNextCharWithPos(filelines, current_pos) " {{{
921921endfunction " }}}
922922
923923function ! phpcomplete#EvaluateModifiers (modifiers, required_modifiers, prohibited_modifiers) " {{{
924- " if theres no modifier, and no modifier is allowed and no modifier is required
924+ " if there's no modifier, and no modifier is allowed and no modifier is required
925925 if len (a: modifiers ) == 0 && len (a: required_modifiers ) == 0
926926 return 1
927927 else
928- " check if every requred modifier is present
928+ " check if every required modifier is present
929929 for required_modifier in a: required_modifiers
930930 if index (a: modifiers , required_modifier) == -1
931931 return 0
@@ -1253,7 +1253,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
12531253 endif
12541254 endif
12551255
1256- " save the coma position for later use if theres a "naked" , possibly separating a parameter and it is not in a parented part
1256+ " save the coma position for later use if there's a "naked" , possibly separating a parameter and it is not in a parented part
12571257 if first_coma_break_pos == -1 && current_char == ' ,'
12581258 let first_coma_break_pos = len (instruction)
12591259 endif
@@ -1299,7 +1299,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
12991299
13001300 " there were a "naked" coma in the instruction
13011301 if first_coma_break_pos != -1
1302- if instruction !~? ' ^use' && instruction !~? ' ^class' " use ... statements and class delcarations should not be broken up by comas
1302+ if instruction !~? ' ^use' && instruction !~? ' ^class' " use ... statements and class declarations should not be broken up by comas
13031303 let pos = (-1 * first_coma_break_pos) + 1
13041304 let instruction = instruction[pos :]
13051305 endif
@@ -1311,7 +1311,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
13111311 " clear everything up until the first (
13121312 let instruction = substitute (instruction, ' ^\(if\|while\|foreach\|for\)\s*(\s*' , ' ' , ' ' )
13131313
1314- " lets iterate trough the instruction until we can find the pair for the opening (
1314+ " lets iterate through the instruction until we can find the pair for the opening (
13151315 let i = 0
13161316 let depth = 1
13171317 while i < len (instruction)
@@ -1419,7 +1419,7 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
14191419 let parts = split (substitute (type , ' ^\\' , ' ' , ' ' ), ' \' )
14201420 let class_candidate_namespace = join (parts[0 :-2 ], ' \' )
14211421 let classname_candidate = parts[-1 ]
1422- " check for renamed namepsace in imports
1422+ " check for renamed namespace in imports
14231423 if has_key (classstructure.imports, class_candidate_namespace)
14241424 let class_candidate_namespace = classstructure.imports[class_candidate_namespace].name
14251425 endif
@@ -2018,7 +2018,7 @@ function! phpcomplete#GetCachedClassContents(classlocation, class_name) " {{{
20182018 if getftime (classstructure.file ) != classstructure.mtime
20192019 let valid = 0
20202020 " we could break here, but the time required for checking probably worth
2021- " the the memory we can free by checking every file in the cached hirearchy
2021+ " the the memory we can free by checking every file in the cached hierarchy
20222022 call phpcomplete#ClearCachedClassContents (classstructure.file )
20232023 endif
20242024 endfor
@@ -2032,7 +2032,7 @@ function! phpcomplete#GetCachedClassContents(classlocation, class_name) " {{{
20322032 call remove (s: cache_classstructures , cache_key)
20332033 call phpcomplete#ClearCachedClassContents (full_file_path)
20342034
2035- " fall trough for the read from files path
2035+ " fall through for the read from files path
20362036 endif
20372037 else
20382038 call phpcomplete#ClearCachedClassContents (full_file_path)
@@ -2141,7 +2141,7 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
21412141 let l = lnum
21422142 let search_line = trait_line
21432143
2144- " add lines from the file until theres no ';' in them
2144+ " add lines from the file until there's no ';' in them
21452145 while search_line !~? ' ;' && l > 0
21462146 " file lines are reversed so we need to go backwards
21472147 let l += 1
@@ -2573,7 +2573,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
25732573 let search_line = line
25742574 let use_line = line
25752575
2576- " add lines from the file until theres no ';' in them
2576+ " add lines from the file until there's no ';' in them
25772577 while search_line !~? ' ;' && l > 0
25782578 " file lines are reversed so we need to go backwards
25792579 let l -= 1
@@ -2605,7 +2605,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
26052605 " find kind flags from tags or built in methods for the objects we extracted
26062606 " they can be either classes, interfaces or namespaces, no other thing is importable in php
26072607 for [key , import ] in items (imports)
2608- " if theres a \ in the name we have it's definitely not a built in thing, look for tags
2608+ " if there's a \ in the name we have it's definitely not a built in thing, look for tags
26092609 if import .name = ~ ' \\'
26102610 let patched_ctags_detected = 0
26112611 let [classname, namespace_for_classes] = phpcomplete#ExpandClassName (import .name, ' \' , {})
@@ -2662,10 +2662,10 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
26622662 let import [' kind' ] = ' i'
26632663 let import [' builtin' ] = 1
26642664 else
2665- " or can be a tag with exactly matchign name
2665+ " or can be a tag with exactly matching name
26662666 let tags = phpcomplete#GetTaglist (' ^' .import [' name' ].' $' )
26672667 for tag in tags
2668- " search for the first matchin namespace, class, interface with no namespace
2668+ " search for the first matching namespace, class, interface with no namespace
26692669 if ! has_key (tag , ' namespace' ) && (tag .kind == ' n' || tag .kind == ' c' || tag .kind == ' i' || tag .kind == ' t' )
26702670 call extend (import , tag )
26712671 let import [' builtin' ] = 0
@@ -2883,7 +2883,7 @@ for [ext, data] in items(php_builtin['functions'])
28832883 call extend (g: php_builtin_functions , data)
28842884endfor
28852885
2886- " Built in classs
2886+ " Built in class
28872887let g: php_builtin_classes = {}
28882888for [ext, data] in items (php_builtin[' classes' ])
28892889 call extend (g: php_builtin_classes , data)
@@ -2901,10 +2901,10 @@ for [ext, data] in items(php_builtin['constants'])
29012901 call extend (g: php_constants , data)
29022902endfor
29032903
2904- " When the classname not found or found but the tags dosen 't contain that
2905- " class we will try to complate any method of any builtin class. To speed up
2904+ " When the classname not found or found but the tags doesn 't contain that
2905+ " class we will try to complete any method of any builtin class. To speed up
29062906" that lookup we compile a 'ClassName::MethodName':'info' dictionary from the
2907- " builtin class informations
2907+ " builtin class information
29082908let g: php_builtin_object_functions = {}
29092909
29102910" When completing for 'everyting imaginable' (no class context, not a
0 commit comments