@@ -17,4 +17,6 @@ |
||
17 | 17 | * <p>(PECL mongo >= 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 | +} |
@@ -36,27 +36,35 @@ |
||
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 | } |
@@ -13,6 +13,7 @@ |
||
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 | } |
@@ -16,4 +16,6 @@ |
||
16 | 16 | /** |
17 | 17 | * <p>(PECL mongo >= 1.5.0)</p> |
18 | 18 | */ |
19 | -class MongoProtocolException extends MongoException {} |
|
19 | +class MongoProtocolException extends MongoException |
|
20 | +{ |
|
21 | +} |
@@ -43,7 +43,7 @@ |
||
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 |
@@ -17,11 +17,14 @@ |
||
17 | 17 | * <p>(PECL mongo >= 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 | } |