aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_phpQuery.php
diff options
context:
space:
mode:
authorGravatar Thomas Renes <thomas@renesweb.nl> 2022-01-08 16:25:17 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-08 16:25:17 +0100
commit916df412f5b6f7fb9bcfb705a3c8c23e35304410 (patch)
treed87c483688575cb5a6b674849e2aefa2052116c8 /lib/lib_phpQuery.php
parent127b7f0a3aad7012055c058e8aba0d27192a8cbc (diff)
Fix various typos and spelling errors in documentation, comments and code. (#4134)
Diffstat (limited to 'lib/lib_phpQuery.php')
-rw-r--r--lib/lib_phpQuery.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/lib_phpQuery.php b/lib/lib_phpQuery.php
index f47133235..411aa120c 100644
--- a/lib/lib_phpQuery.php
+++ b/lib/lib_phpQuery.php
@@ -336,7 +336,7 @@ class DOMDocumentWrapper {
phpQuery::debug('Full markup load (XML): '.substr($markup, 0, 250));
$this->loadMarkupReset();
$this->isXML = true;
- // check agains XHTML in contentType or markup
+ // check against XHTML in contentType or markup
$isContentTypeXHTML = $this->isXHTML();
$isMarkupXHTML = $this->isXHTML($markup);
if ($isContentTypeXHTML || $isMarkupXHTML) {
@@ -1184,7 +1184,7 @@ class phpQueryObject
/**
* Indicated if doument is just a fragment (no <html> tag).
*
- * Every document is realy a full document, so even documentFragments can
+ * Every document is really a full document, so even documentFragments can
* be queried against <html>, but getDocument(id)->htmlOuter() will return
* only contents of <body>.
*
@@ -1195,7 +1195,7 @@ class phpQueryObject
* Iterator interface helper
* @access private
*/
- protected $elementsInterator = array();
+ protected $elementsIterator = array();
/**
* Iterator interface helper
* @var bool
@@ -1340,7 +1340,7 @@ class phpQueryObject
/**
* Unloads whole document from memory.
* CAUTION! None further operations will be possible on this document.
- * All objects refering to it will be useless.
+ * All objects referring to it will be useless.
*
* @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
*/
@@ -1883,7 +1883,7 @@ class phpQueryObject
// strip side brackets
$attr = trim($s, '][');
$execute = false;
- // attr with specifed value
+ // attr with specified value
if (mb_strpos($s, '=')) {
$value = null;
list($attr, $value) = explode('=', $attr);
@@ -4076,7 +4076,7 @@ class phpQueryObject
$this->debug('iterating foreach');
// phpQuery::selectDocument($this->getDocumentID());
$this->elementsBackup = $this->elements;
- $this->elementsInterator = $this->elements;
+ $this->elementsIterator = $this->elements;
$this->valid = isset( $this->elements[0] )
? 1 : 0;
// $this->elements = $this->valid
@@ -4090,7 +4090,7 @@ class phpQueryObject
*/
#[\ReturnTypeWillChange]
public function current() {
- return $this->elementsInterator[ $this->current ];
+ return $this->elementsIterator[ $this->current ];
}
/**
* @return mixed
@@ -4115,11 +4115,11 @@ class phpQueryObject
public function next($cssSelector = null){
// if ($cssSelector || $this->valid)
// return $this->_next($cssSelector);
- $this->valid = isset( $this->elementsInterator[ $this->current+1 ] )
+ $this->valid = isset( $this->elementsIterator[ $this->current+1 ] )
? true
: false;
- if (! $this->valid && $this->elementsInterator) {
- $this->elementsInterator = null;
+ if (! $this->valid && $this->elementsIterator) {
+ $this->elementsIterator = null;
} else if ($this->valid) {
$this->current++;
} else {
@@ -4918,7 +4918,7 @@ abstract class phpQuery {
* @param string $file Filename to include. Defaults to "{$class}.php".
*/
public static function plugin($class, $file = null) {
- // TODO $class checked agains phpQuery_$class
+ // TODO $class checked against phpQuery_$class
// if (strpos($class, 'phpQuery') === 0)
// $class = substr($class, 8);
if (in_array($class, self::$pluginsLoaded))