Skip to content

Commit 8d709dd

Browse files
frankmayerjsteemann
authored andcommitted
Spelling fixes and a variable rename
1 parent 0801ad8 commit 8d709dd

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

lib/triagens/ArangoDb/AqlUserFunction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* AqlUserFunction object<br>
1616
* An AqlUserFunction is an object that is used to manage AQL User Functions.<br>
17-
* It registers, unregisters and lists user functions on the server<br>
17+
* It registers, un-registers and lists user functions on the server<br>
1818
* <br>
1919
* The object encapsulates:<br>
2020
* <br>
@@ -145,7 +145,7 @@ public function register($name = null, $code = null)
145145

146146

147147
/**
148-
* Unregister the user function
148+
* Un-register the user function
149149
*
150150
* If no parameter ($name) is passed, it will use the property of the object.
151151
*

lib/triagens/ArangoDb/CollectionHandler.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public function importFromFile(
785785
* <br>
786786
*
787787
* </li>
788-
* <li>'createCollection' - If true, create the collection if it doesn't exist. Defaults to false </li>
788+
* <li>'createCollection' - If true, create the collection if it does not exist. Defaults to false </li>
789789
* </p>
790790
*
791791
* @return array
@@ -1126,7 +1126,7 @@ public function any($collectionId)
11261126
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
11271127
* <p>
11281128
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document.<br>
1129-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called<br>
1129+
* The difference is, that if you're returning a result set of documents, the getAll() is already called<br>
11301130
* and the hidden attributes would not be applied to the attributes.<br>
11311131
* </p>
11321132
*
@@ -1209,7 +1209,7 @@ public function getAllIds($collection)
12091209
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
12101210
* <p>
12111211
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document. <br>
1212-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called <br>
1212+
* The difference is, that if you're returning a result set of documents, the getAll() is already called <br>
12131213
* and the hidden attributes would not be applied to the attributes.<br>
12141214
* </p>
12151215
* </li>
@@ -1270,7 +1270,7 @@ public function byExample($collectionId, $document, array $options = [])
12701270
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
12711271
* <p>
12721272
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document. <br>
1273-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called <br>
1273+
* The difference is, that if you're returning a result set of documents, the getAll() is already called <br>
12741274
* and the hidden attributes would not be applied to the attributes.<br>
12751275
* </p>
12761276
* </li>
@@ -1321,7 +1321,7 @@ public function firstExample($collectionId, $document, array $options = [])
13211321
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
13221322
* <p>
13231323
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document. <br>
1324-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called <br>
1324+
* The difference is, that if you're returning a result set of documents, the getAll() is already called <br>
13251325
* and the hidden attributes would not be applied to the attributes.<br>
13261326
* </p>
13271327
* </li>
@@ -1652,7 +1652,7 @@ public function lookupByKeys($collectionId, array $keys, array $options = [])
16521652
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
16531653
* <p>
16541654
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document.<br>
1655-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called<br>
1655+
* The difference is, that if you're returning a result set of documents, the getAll() is already called<br>
16561656
* and the hidden attributes would not be applied to the attributes.<br>
16571657
* </p>
16581658
*
@@ -1716,7 +1716,7 @@ public function range($collectionId, $attribute, $left, $right, array $options =
17161716
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
17171717
* <p>
17181718
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document. <br>
1719-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called <br>
1719+
* The difference is, that if you're returning a result set of documents, the getAll() is already called <br>
17201720
* and the hidden attributes would not be applied to the attributes.<br>
17211721
* </p>
17221722
*
@@ -1771,7 +1771,7 @@ public function near($collectionId, $latitude, $longitude, array $options = [])
17711771
* <li>'_hiddenAttributes' - Set an array of hidden attributes for created documents.
17721772
* <p>
17731773
* This is actually the same as setting hidden attributes using setHiddenAttributes() on a document.<br>
1774-
* The difference is, that if you're returning a resultset of documents, the getAll() is already called <br>
1774+
* The difference is, that if you're returning a result set of documents, the getAll() is already called <br>
17751775
* and the hidden attributes would not be applied to the attributes.<br>
17761776
* </p>
17771777
*

lib/triagens/ArangoDb/Connection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Connection
3232

3333
/**
3434
* Pre-assembled HTTP headers string for connection
35-
* This is precalculated when connection options are set/changed, to avoid
35+
* This is pre-calculated when connection options are set/changed, to avoid
3636
* calculation of the same HTTP header values in each request done via the
3737
* connection
3838
*
@@ -42,7 +42,7 @@ class Connection
4242

4343
/**
4444
* Pre-assembled base URL for the current database
45-
* This is precalculated when connection options are set/changed, to avoid
45+
* This is pre-calculated when connection options are set/changed, to avoid
4646
* calculation of the same base URL in each request done via the
4747
* connection
4848
*
@@ -621,7 +621,7 @@ public function getBatches()
621621
*
622622
* This checks if we're in batch mode and returns a placeholder object,
623623
* since we need to return some object that is expected by the caller.
624-
* if we're not in batch mode it doesn't return anything, and
624+
* if we're not in batch mode it does not return anything, and
625625
*
626626
* @return mixed Batchpart or null if not in batch capturing mode
627627
* @throws \triagens\ArangoDb\ClientException

lib/triagens/ArangoDb/DocumentHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ private function getRevision($document)
752752
* @param $collection mixed collection name or id
753753
* @param array $options - optional, array of options
754754
* <p>Options are :
755-
* <li>'createCollection' - true to create the collection if it doesn't exist</li>
755+
* <li>'createCollection' - true to create the collection if it does not exist</li>
756756
* <li>'createCollectionType' - "document" or 2 for document collection</li>
757757
* <li> "edge" or 3 for edge collection</li>
758758
* </p>

lib/triagens/ArangoDb/EdgeHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function outEdges($collection, $vertexHandle)
242242
* @param $collection mixed collection name or id
243243
* @param array $options - optional, array of options
244244
* <p>Options are :
245-
* <li>'createCollection' - true to create the collection if it doesn't exist</li>
245+
* <li>'createCollection' - true to create the collection if it does not exist</li>
246246
* <li>'createCollectionType' - "document" or 2 for document collection</li>
247247
* <li> "edge" or 3 for edge collection</li>
248248
* </p>

lib/triagens/ArangoDb/GraphHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function getGraph($graph, array $options = [])
189189

190190
/**
191191
* Sets the batchsize for any method creating a cursor.
192-
* Will be reseted after the cursor has been created.
192+
* Will be reset after the cursor has been created.
193193
*
194194
* @param int $batchsize
195195
*/
@@ -201,7 +201,7 @@ public function setBatchsize($batchsize)
201201

202202
/**
203203
* Sets the count for any method creating a cursor.
204-
* Will be reseted after the cursor has been created.
204+
* Will be reset after the cursor has been created.
205205
*
206206
* @param int $count
207207
*/
@@ -213,7 +213,7 @@ public function setCount($count)
213213

214214
/**
215215
* Sets the limit for any method creating a cursor.
216-
* Will be reseted after the cursor has been created.
216+
* Will be reset after the cursor has been created.
217217
*
218218
* @param int $limit
219219
*/

lib/triagens/ArangoDb/HttpHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static function createConnection(ConnectionOptions $options)
100100

101101
$fp = @stream_socket_client(
102102
$endpoint,
103-
$errno,
103+
$errNo,
104104
$message,
105105
$options[ConnectionOptions::OPTION_TIMEOUT],
106106
STREAM_CLIENT_CONNECT,
@@ -110,7 +110,7 @@ public static function createConnection(ConnectionOptions $options)
110110
if (!$fp) {
111111
throw new ConnectException(
112112
'cannot connect to endpoint \'' .
113-
$options[ConnectionOptions::OPTION_ENDPOINT] . '\': ' . $message, $errno
113+
$options[ConnectionOptions::OPTION_ENDPOINT] . '\': ' . $message, $errNo
114114
);
115115
}
116116

@@ -133,7 +133,7 @@ public static function createConnection(ConnectionOptions $options)
133133
* Create a request string (header and body)
134134
*
135135
* @param ConnectionOptions $options - connection options
136-
* @param string $connectionHeader - preassembled header string for connection
136+
* @param string $connectionHeader - pre-assembled header string for connection
137137
* @param string $method - HTTP method
138138
* @param string $url - HTTP URL
139139
* @param string $body - optional body to post

lib/triagens/ArangoDb/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Container for an AQL query
1515
*
16-
* Optional bind parameters can be used when issuing thei AQL query to separate
16+
* Optional bind parameters can be used when issuing the AQL query to separate
1717
* the query from the values.
1818
* Executing a query will result in a cursor being created.
1919
*

0 commit comments

Comments
 (0)