Completed
Pull Request — master (#18)
by
unknown
24:10 queued 09:55
created
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.
lib/Mongo/MongoGridFSException.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 MongoGridFSException extends MongoException {
16
+class MongoGridFSException extends MongoException
17
+{
17 18
 
18 19
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoGridFSFile.php 1 patch
Braces   +20 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,8 @@  discard block
 block discarded – undo
13 13
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 14
  */
15 15
 
16
-class MongoGridFSFile {
16
+class MongoGridFSFile
17
+{
17 18
     /**
18 19
      * @link http://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.file
19 20
      * @var $file
@@ -32,21 +33,27 @@  discard block
 block discarded – undo
32 33
      * @param array $file A file from the database
33 34
      * @return MongoGridFSFile Returns a new MongoGridFSFile
34 35
      */
35
-    public function __construct($gridfs, array $file) {}
36
+    public function __construct($gridfs, array $file)
37
+    {
38
+}
36 39
 
37 40
     /**
38 41
      * Returns this file's filename
39 42
      * @link http://php.net/manual/en/mongogridfsfile.getfilename.php
40 43
      * @return string Returns the filename
41 44
      */
42
-    public function getFilename() {}
45
+    public function getFilename()
46
+    {
47
+}
43 48
 
44 49
     /**
45 50
      * Returns this file's size
46 51
      * @link http://php.net/manual/en/mongogridfsfile.getsize.php
47 52
      * @return int Returns this file's size
48 53
      */
49
-    public function getSize() {}
54
+    public function getSize()
55
+    {
56
+}
50 57
 
51 58
     /**
52 59
      * Writes this file to the filesystem
@@ -54,14 +61,18 @@  discard block
 block discarded – undo
54 61
      * @param string $filename The location to which to write the file (path+filename+extension). If none is given, the stored filename will be used.
55 62
      * @return int Returns the number of bytes written
56 63
      */
57
-    public function write($filename = null) {}
64
+    public function write($filename = null)
65
+    {
66
+}
58 67
 
59 68
     /**
60 69
      * This will load the file into memory. If the file is bigger than your memory, this will cause problems!
61 70
      * @link http://php.net/manual/en/mongogridfsfile.getbytes.php
62 71
      * @return string Returns a string of the bytes in the file
63 72
      */
64
-    public function getBytes() {}
73
+    public function getBytes()
74
+    {
75
+}
65 76
 
66 77
     /**
67 78
      * This method returns a stream resource that can be used to read the stored file with all file functions in PHP.
@@ -71,5 +82,7 @@  discard block
 block discarded – undo
71 82
      * @link http://php.net/manual/en/mongogridfsfile.getresource.php
72 83
      * @return resource Returns a resource that can be used to read the file with
73 84
      */
74
-    public function getResource() {}
85
+    public function getResource()
86
+    {
87
+}
75 88
 }
Please login to merge, or discard this patch.
lib/Mongo/MongoProtocolException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,4 +16,6 @@
 block discarded – undo
16 16
 /**
17 17
  * <p>(PECL mongo &gt;= 1.5.0)</p>
18 18
  */
19
-class MongoProtocolException extends MongoException {}
19
+class MongoProtocolException extends MongoException
20
+{
21
+}
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/MongoWriteConcernException.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,14 @@
 block discarded – undo
17 17
  * <p>(PECL mongo &gt;= 1.5.0)</p>
18 18
  * @link http://php.net/manual/en/class.mongowriteconcernexception.php#class.mongowriteconcernexception
19 19
  */
20
-class MongoWriteConcernException extends MongoCursorException {
20
+class MongoWriteConcernException extends MongoCursorException
21
+{
21 22
     /**
22 23
      * Get the error document
23 24
      * @link http://php.net/manual/en/mongowriteconcernexception.getdocument.php
24 25
      * @return array <p>A MongoDB document, if available, as an array.</p>
25 26
      */
26
-    public function getDocument() {}
27
+    public function getDocument()
28
+    {
29
+}
27 30
 }
Please login to merge, or discard this patch.