@@ -13,6 +13,7 @@ |
||
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 | } |
@@ -13,6 +13,7 @@ |
||
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 | } |
@@ -13,6 +13,7 @@ |
||
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 | } |
@@ -17,6 +17,7 @@ |
||
17 | 17 | * <p>(PECL mongo >= 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 | } |
@@ -13,5 +13,6 @@ |
||
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 | } |
@@ -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 | +} |
@@ -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 | } |
@@ -13,7 +13,8 @@ discard block |
||
13 | 13 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
14 | 14 | */ |
15 | 15 | |
16 | -class MongoLog { |
|
16 | +class MongoLog |
|
17 | +{ |
|
17 | 18 | /** |
18 | 19 | * @link http://php.net/manual/en/class.mongolog.php#mongolog.constants.none |
19 | 20 | */ |
@@ -99,7 +100,9 @@ discard block |
||
99 | 100 | * <ul> |
100 | 101 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
101 | 102 | */ |
102 | - public static function setCallback ( callable $log_function ) {} |
|
103 | + public static function setCallback ( callable $log_function ) |
|
104 | + { |
|
105 | +} |
|
103 | 106 | |
104 | 107 | /** |
105 | 108 | * This function can be used to set how verbose logging should be and the types of |
@@ -111,7 +114,9 @@ discard block |
||
111 | 114 | * @param int $level The levels you would like to log |
112 | 115 | * @return void |
113 | 116 | */ |
114 | - public static function setLevel($level) {} |
|
117 | + public static function setLevel($level) |
|
118 | + { |
|
119 | +} |
|
115 | 120 | |
116 | 121 | /** |
117 | 122 | * This can be used to see the log level. Use the constants described in the |
@@ -121,7 +126,9 @@ discard block |
||
121 | 126 | * @static |
122 | 127 | * @return int Returns the current level |
123 | 128 | */ |
124 | - public static function getLevel() {} |
|
129 | + public static function getLevel() |
|
130 | + { |
|
131 | +} |
|
125 | 132 | |
126 | 133 | /** |
127 | 134 | * This function can be used to set which parts of the driver's functionality |
@@ -133,7 +140,9 @@ discard block |
||
133 | 140 | * @param int $module The module(s) you would like to log |
134 | 141 | * @return void |
135 | 142 | */ |
136 | - public static function setModule($module) {} |
|
143 | + public static function setModule($module) |
|
144 | + { |
|
145 | +} |
|
137 | 146 | |
138 | 147 | /** |
139 | 148 | * This function can be used to see which parts of the driver's functionality are |
@@ -144,5 +153,7 @@ discard block |
||
144 | 153 | * @static |
145 | 154 | * @return int Returns the modules currently being logged |
146 | 155 | */ |
147 | - public static function getModule() {} |
|
156 | + public static function getModule() |
|
157 | + { |
|
158 | +} |
|
148 | 159 | } |
@@ -13,7 +13,8 @@ discard block |
||
13 | 13 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
14 | 14 | */ |
15 | 15 | |
16 | -class MongoPool { |
|
16 | +class MongoPool |
|
17 | +{ |
|
17 | 18 | /** |
18 | 19 | * Returns an array of information about all connection pools. |
19 | 20 | * |
@@ -40,7 +41,9 @@ discard block |
||
40 | 41 | * keeps increasing, you may want to use MongoPool::setSize to add more connections |
41 | 42 | * to your pool |
42 | 43 | */ |
43 | - public static function info() {} |
|
44 | + public static function info() |
|
45 | + { |
|
46 | +} |
|
44 | 47 | |
45 | 48 | /** |
46 | 49 | * Sets the max number of connections new pools will be able to create. |
@@ -52,7 +55,9 @@ discard block |
||
52 | 55 | * connections |
53 | 56 | * @return boolean Returns the former value of pool size |
54 | 57 | */ |
55 | - public static function setSize($size) {} |
|
58 | + public static function setSize($size) |
|
59 | + { |
|
60 | +} |
|
56 | 61 | |
57 | 62 | /** |
58 | 63 | * . |
@@ -61,5 +66,7 @@ discard block |
||
61 | 66 | * @static |
62 | 67 | * @return int Returns the current pool size |
63 | 68 | */ |
64 | - public static function getSize() {} |
|
69 | + public static function getSize() |
|
70 | + { |
|
71 | +} |
|
65 | 72 | } |