Completed
Pull Request — master (#8)
by
unknown
02:42
created
lib/Mongo/Mongo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      * </p>
93 93
      * @return bool returns the former value of slaveOkay for this instance.
94 94
      */
95
-    public function setSlaveOkay ($ok) {}
95
+    public function setSlaveOkay($ok) {}
96 96
     /**
97 97
      * @deprecated Relying on this feature is highly discouraged. Please use MongoPool::setSize() instead.
98 98
      *(PECL mongo &gt;= 1.2.0)<br/>
Please login to merge, or discard this patch.
lib/Mongo/MongoClient.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 class MongoClient
24 24
 {
25 25
     const VERSION = '1.6.12';
26
-    const DEFAULT_HOST = "localhost" ;
27
-    const DEFAULT_PORT = 27017 ;
28
-    const RP_PRIMARY = "primary" ;
29
-    const RP_PRIMARY_PREFERRED = "primaryPreferred" ;
30
-    const RP_SECONDARY = "secondary" ;
31
-    const RP_SECONDARY_PREFERRED = "secondaryPreferred" ;
32
-    const RP_NEAREST = "nearest" ;
26
+    const DEFAULT_HOST = "localhost";
27
+    const DEFAULT_PORT = 27017;
28
+    const RP_PRIMARY = "primary";
29
+    const RP_PRIMARY_PREFERRED = "primaryPreferred";
30
+    const RP_SECONDARY = "secondary";
31
+    const RP_SECONDARY_PREFERRED = "secondaryPreferred";
32
+    const RP_NEAREST = "nearest";
33 33
 
34 34
     /**
35 35
      * @var bool
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * {@link http://www.php.net/manual/en/class.mongoint64.php MongoInt64} class. The latter is necessary on 32
199 199
      * bit platforms (and Windows).
200 200
      */
201
-    public function killCursor($server_hash , $id)
201
+    public function killCursor($server_hash, $id)
202 202
     {
203 203
 
204 204
     }
Please login to merge, or discard this patch.
lib/Mongo/MongoCommandCursor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @return mixed Can return any type.
21 21
      * @since 5.0.0
22 22
      */
23
-    public function current(){}
23
+    public function current() {}
24 24
 
25 25
     /**
26 26
      * Move forward to next element
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @return void Any returned value is ignored.
29 29
      * @since 5.0.0
30 30
      */
31
-    public function next(){}
31
+    public function next() {}
32 32
 
33 33
     /**
34 34
      * Return the key of the current element
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @return mixed scalar on success, or null on failure.
37 37
      * @since 5.0.0
38 38
      */
39
-    public function key(){}
39
+    public function key() {}
40 40
 
41 41
     /**
42 42
      * Checks if current position is valid
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Returns true on success or false on failure.
46 46
      * @since 5.0.0
47 47
      */
48
-    public function valid(){}
48
+    public function valid() {}
49 49
 
50 50
     /**
51 51
      * Rewind the Iterator to the first element
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @return void Any returned value is ignored.
54 54
      * @since 5.0.0
55 55
      */
56
-    public function rewind(){}
56
+    public function rewind() {}
57 57
 
58 58
     function batchSize(int $batchSize):MongoCursorInterface{}
59 59
 
Please login to merge, or discard this patch.
lib/Mongo/MongoDB.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $collections = $this->db->listCollections($options);
105 105
 
106
-        $getCollectionName = function (CollectionInfo $collectionInfo) {
106
+        $getCollectionName = function(CollectionInfo $collectionInfo) {
107 107
             return $collectionInfo->getName();
108 108
         };
109 109
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * </p>
205 205
      * @return bool Returns the former value of slaveOkay for this instance.
206 206
      */
207
-    public function setSlaveOkay ($ok = true)
207
+    public function setSlaveOkay($ok = true)
208 208
     {
209 209
         return false;
210 210
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             $id = isset($document_or_id->_id) ? $document_or_id->_id : null;
297 297
 //            $id = $document_or_id->_id ?? null;
298 298
         } elseif (is_array($document_or_id)) {
299
-            if (! isset($document_or_id['_id'])) {
299
+            if (!isset($document_or_id['_id'])) {
300 300
                 return null;
301 301
             }
302 302
 
Please login to merge, or discard this patch.
lib/Mongo/MongoLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      * <ul>
100 100
      * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
101 101
      */
102
-    public static function setCallback ( callable $log_function ) {}
102
+    public static function setCallback(callable $log_function) {}
103 103
 
104 104
     /**
105 105
      * This function can be used to set how verbose logging should be and the types of
Please login to merge, or discard this patch.
lib/Mongo/MongoResultException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * http://php.net/manual/en/mongoresultexception.getdocument.php
26 26
      * @return array <p>The full result document as an array, including partial data if available and additional keys.</p>
27 27
      */
28
-    public function getDocument () {}
28
+    public function getDocument() {}
29 29
 
30 30
     public $document;
31 31
 
Please login to merge, or discard this patch.
lib/Mongo/MongoRegex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             return;
44 44
         }
45 45
 
46
-        if (! preg_match('#^/(.*)/([imxslu]*)$#', $regex, $matches)) {
46
+        if (!preg_match('#^/(.*)/([imxslu]*)$#', $regex, $matches)) {
47 47
             throw new MongoException('invalid regex', 9);
48 48
         }
49 49
 
Please login to merge, or discard this patch.
lib/Mongo/MongoDBRef.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     public static function get($db, $ref)
79 79
     {
80
-        if (! static::isRef($ref)) {
80
+        if (!static::isRef($ref)) {
81 81
             return null;
82 82
         }
83 83
 
Please login to merge, or discard this patch.
lib/Mongo/MongoCursor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
             MongoClient::RP_SECONDARY_PREFERRED,
465 465
             MongoClient::RP_NEAREST
466 466
         ];
467
-        if (! in_array($readPreference, $availableReadPreferences)) {
467
+        if (!in_array($readPreference, $availableReadPreferences)) {
468 468
             trigger_error("The value '$readPreference' is not valid as read preference type", E_WARNING);
469 469
             return $this;
470 470
         }
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
      */
622 622
     private function convertCursorType()
623 623
     {
624
-        if (! $this->tailable) {
624
+        if (!$this->tailable) {
625 625
             return null;
626 626
         }
627 627
 
Please login to merge, or discard this patch.