Completed
Pull Request — master (#20)
by
unknown
02:53
created
lib/Mongo/MongoConnectionException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 14
  */
15 15
 
16
-class MongoConnectionException extends MongoException {
16
+class MongoConnectionException extends MongoException
17
+{
17 18
 
18 19
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoCursorException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 14
  */
15 15
 
16
-class MongoCursorException extends MongoException {
16
+class MongoCursorException extends MongoException
17
+{
17 18
 
18 19
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoCursorTimeoutException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 14
  */
15 15
 
16
-class MongoCursorTimeoutException extends MongoCursorException {
16
+class MongoCursorTimeoutException extends MongoCursorException
17
+{
17 18
 
18 19
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoDB.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
      * @param bool $backup_original_files [optional] <p>If original files should be backed up.</p>
205 205
      * @return array <p>Returns db response.</p>
206 206
      */
207
-    public function repair($preserve_cloned_files = FALSE, $backup_original_files = FALSE)
207
+    public function repair($preserve_cloned_files = false, $backup_original_files = false)
208 208
     {
209 209
         return [];
210 210
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         $collections = $this->db->listCollections($options);
134 134
 
135
-        $getCollectionInfo = function (CollectionInfo $collectionInfo) {
135
+        $getCollectionInfo = function(CollectionInfo $collectionInfo) {
136 136
             return [
137 137
                 'name' => $collectionInfo->getName(),
138 138
                 'options' => $collectionInfo->getOptions(),
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         $collections = $this->db->listCollections($options);
160 160
 
161
-        $getCollectionName = function (CollectionInfo $collectionInfo) {
161
+        $getCollectionName = function(CollectionInfo $collectionInfo) {
162 162
             return $collectionInfo->getName();
163 163
         };
164 164
 
@@ -307,13 +307,13 @@  discard block
 block discarded – undo
307 307
         if ($document_or_id instanceof \MongoId) {
308 308
             $id = $document_or_id;
309 309
         } elseif (is_object($document_or_id)) {
310
-            if (! isset($document_or_id->_id)) {
310
+            if ( ! isset($document_or_id->_id)) {
311 311
                 return null;
312 312
             }
313 313
 
314 314
             $id = $document_or_id->_id;
315 315
         } elseif (is_array($document_or_id)) {
316
-            if (! isset($document_or_id['_id'])) {
316
+            if ( ! isset($document_or_id['_id'])) {
317 317
                 return null;
318 318
             }
319 319
 
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/MongoDuplicateKeyException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
  * <p>(PECL mongo &gt;= 1.5.0)</p>
18 18
  * @link http://php.net/manual/en/class.mongoduplicatekeyexception.php
19 19
  */
20
-class MongoDuplicateKeyException extends MongoWriteConcernException {
20
+class MongoDuplicateKeyException extends MongoWriteConcernException
21
+{
21 22
 
22 23
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,6 @@
 block discarded – undo
13 13
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 14
  */
15 15
 
16
-class MongoException extends Exception {
16
+class MongoException extends Exception
17
+{
17 18
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoExecutionTimeoutException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,4 +17,6 @@
 block discarded – undo
17 17
  * <p>(PECL mongo &gt;= 1.5.0)</p>
18 18
  * @link http://php.net/manual/en/class.mongoexecutiontimeoutexception.php
19 19
  */
20
-class MongoExecutionTimeoutException extends MongoException {}
20
+class MongoExecutionTimeoutException extends MongoException
21
+{
22
+}
Please login to merge, or discard this patch.
lib/Mongo/MongoGridFSCursor.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,27 +36,35 @@
 block discarded – undo
36 36
      * @param array $fields Fields to return
37 37
      * @return MongoGridFSCursor Returns the new cursor
38 38
      */
39
-    public function __construct($gridfs, $connection, $ns, $query, $fields) {}
39
+    public function __construct($gridfs, $connection, $ns, $query, $fields)
40
+    {
41
+}
40 42
 
41 43
     /**
42 44
      * Return the next file to which this cursor points, and advance the cursor
43 45
      * @link http://php.net/manual/en/mongogridfscursor.getnext.php
44 46
      * @return MongoGridFSFile Returns the next file
45 47
      */
46
-    public function getNext() {}
48
+    public function getNext()
49
+    {
50
+}
47 51
 
48 52
     /**
49 53
      * Returns the current file
50 54
      * @link http://php.net/manual/en/mongogridfscursor.current.php
51 55
      * @return MongoGridFSFile The current file
52 56
      */
53
-    public function current() {}
57
+    public function current()
58
+    {
59
+}
54 60
 
55 61
     /**
56 62
      * Returns the current result's filename
57 63
      * @link http://php.net/manual/en/mongogridfscursor.key.php
58 64
      * @return string The current results filename
59 65
      */
60
-    public function key() {}
66
+    public function key()
67
+    {
68
+}
61 69
 
62 70
 }
Please login to merge, or discard this patch.