Completed
Pull Request — master (#41)
by
unknown
03:50
created
lib/Mongo/MongoCollection.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @var MongoDB
34 34
      */
35
-    public $db = NULL;
35
+    public $db = null;
36 36
 
37 37
     /**
38 38
      * @var string
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             foreach (func_get_args() as $operator) {
134 134
                 $i++;
135 135
                 if (! is_array($operator)) {
136
-                    trigger_error("Argument $i is not an array", E_WARNING);
136
+                    trigger_error("argument $i is not an array", E_WARNING);
137 137
                     return;
138 138
                 }
139 139
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      * @param bool $scan_data Only validate indices, not the base collection.
235 235
      * @return array Returns the database's evaluation of this object.
236 236
      */
237
-    public function validate($scan_data = FALSE)
237
+    public function validate($scan_data = false)
238 238
     {
239 239
         $command = [
240 240
             'validate' => $this->name,
Please login to merge, or discard this patch.
lib/Mongo/MongoDB.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
      * @param bool $backup_original_files [optional] <p>If original files should be backed up.</p>
205 205
      * @return array <p>Returns db response.</p>
206 206
      */
207
-    public function repair($preserve_cloned_files = FALSE, $backup_original_files = FALSE)
207
+    public function repair($preserve_cloned_files = false, $backup_original_files = false)
208 208
     {
209 209
         return [];
210 210
     }
Please login to merge, or discard this patch.
lib/Mongo/MongoWriteBatch.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,19 +153,19 @@
 block discarded – undo
153 153
         switch ($this->batchType) {
154 154
             case self::COMMAND_UPDATE:
155 155
                 if (! isset($item['q'])) {
156
-                    throw new Exception("Expected $item to contain 'q' key");
156
+                    throw new Exception("expected $item to contain 'q' key");
157 157
                 }
158 158
                 if (! isset($item['u'])) {
159
-                    throw new Exception("Expected $item to contain 'u' key");
159
+                    throw new Exception("expected $item to contain 'u' key");
160 160
                 }
161 161
                 break;
162 162
 
163 163
             case self::COMMAND_DELETE:
164 164
                 if (! isset($item['q'])) {
165
-                    throw new Exception("Expected $item to contain 'q' key");
165
+                    throw new Exception("expected $item to contain 'q' key");
166 166
                 }
167 167
                 if (! isset($item['limit'])) {
168
-                    throw new Exception("Expected $item to contain 'limit' key");
168
+                    throw new Exception("expected $item to contain 'limit' key");
169 169
                 }
170 170
                 break;
171 171
         }
Please login to merge, or discard this patch.