Completed
Pull Request — master (#20)
by
unknown
02:35
created
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.
lib/Mongo/MongoPool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @link http://php.net/manual/en/mongopool.setsize.php
37 37
      * @param int $size
38
-     * @return boolean Returns the former value of pool size
38
+     * @return integer Returns the former value of pool size
39 39
      */
40 40
     public static function setSize($size)
41 41
     {
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
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      * <ul>
120 120
      * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
121 121
      */
122
-    public static function setCallback(callable $log_function )
122
+    public static function setCallback(callable $log_function)
123 123
     {
124 124
         self::$callback = $log_function;
125 125
         return true;
Please login to merge, or discard this patch.