| @@ -23,13 +23,13 @@ discard block | ||
| 23 | 23 | class MongoClient | 
| 24 | 24 |  { | 
| 25 | 25 | const VERSION = '1.6.12'; | 
| 26 | - const DEFAULT_HOST = "localhost" ; | |
| 27 | - const DEFAULT_PORT = 27017 ; | |
| 28 | - const RP_PRIMARY = "primary" ; | |
| 29 | - const RP_PRIMARY_PREFERRED = "primaryPreferred" ; | |
| 30 | - const RP_SECONDARY = "secondary" ; | |
| 31 | - const RP_SECONDARY_PREFERRED = "secondaryPreferred" ; | |
| 32 | - const RP_NEAREST = "nearest" ; | |
| 26 | + const DEFAULT_HOST = "localhost"; | |
| 27 | + const DEFAULT_PORT = 27017; | |
| 28 | + const RP_PRIMARY = "primary"; | |
| 29 | + const RP_PRIMARY_PREFERRED = "primaryPreferred"; | |
| 30 | + const RP_SECONDARY = "secondary"; | |
| 31 | + const RP_SECONDARY_PREFERRED = "secondaryPreferred"; | |
| 32 | + const RP_NEAREST = "nearest"; | |
| 33 | 33 | |
| 34 | 34 | /** | 
| 35 | 35 | * @var bool | 
| @@ -198,7 +198,7 @@ discard block | ||
| 198 | 198 |       * {@link http://www.php.net/manual/en/class.mongoint64.php MongoInt64} class. The latter is necessary on 32 | 
| 199 | 199 | * bit platforms (and Windows). | 
| 200 | 200 | */ | 
| 201 | - public function killCursor($server_hash , $id) | |
| 201 | + public function killCursor($server_hash, $id) | |
| 202 | 202 |      { | 
| 203 | 203 | |
| 204 | 204 | } | 
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | * http://php.net/manual/en/mongoresultexception.getdocument.php | 
| 26 | 26 | * @return array <p>The full result document as an array, including partial data if available and additional keys.</p> | 
| 27 | 27 | */ | 
| 28 | -    public function getDocument () {} | |
| 28 | +    public function getDocument() {} | |
| 29 | 29 | |
| 30 | 30 | public $document; | 
| 31 | 31 | |
| @@ -18,13 +18,16 @@ | ||
| 18 | 18 | * @link http://php.net/manual/en/class.mongoresultexception.php#mongoresultexception.props.document | 
| 19 | 19 | * | 
| 20 | 20 | */ | 
| 21 | -class MongoResultException extends MongoException { | |
| 21 | +class MongoResultException extends MongoException | |
| 22 | +{ | |
| 22 | 23 | /** | 
| 23 | 24 | * Retrieve the full result document | 
| 24 | 25 | * http://php.net/manual/en/mongoresultexception.getdocument.php | 
| 25 | 26 | * @return array <p>The full result document as an array, including partial data if available and additional keys.</p> | 
| 26 | 27 | */ | 
| 27 | -    public function getDocument () {} | |
| 28 | + public function getDocument () | |
| 29 | +    { | |
| 30 | +} | |
| 28 | 31 | |
| 29 | 32 | public $document; | 
| 30 | 33 | |
| @@ -101,7 +101,7 @@ | ||
| 101 | 101 | * @param bool $ok | 
| 102 | 102 | * @return bool returns the former value of slaveOkay for this instance. | 
| 103 | 103 | */ | 
| 104 | - public function setSlaveOkay ($ok) | |
| 104 | + public function setSlaveOkay($ok) | |
| 105 | 105 |      { | 
| 106 | 106 | $this->notImplemented(); | 
| 107 | 107 | } | 
| @@ -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 | } | 
| @@ -77,7 +77,7 @@ | ||
| 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 | |
| @@ -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 | } |