@@ -17,7 +17,7 @@  | 
                                                    ||
| 17 | 17 | $capsule = new Capsule();  | 
                                                        
| 18 | 18 | |
| 19 | 19 | //Adds MongoDb support.  | 
                                                        
| 20 | -$capsule->getDatabaseManager()->extend('mongodb', function ($config) { | 
                                                        |
| 20 | +$capsule->getDatabaseManager()->extend('mongodb', function($config) { | 
                                                        |
| 21 | 21 | return new Jenssegers\Mongodb\Connection($config);  | 
                                                        
| 22 | 22 | });  | 
                                                        
| 23 | 23 | |
@@ -56,7 +56,7 @@  | 
                                                    ||
| 56 | 56 | */  | 
                                                        
| 57 | 57 | private static function removeEmptyFilters(array $filters)  | 
                                                        
| 58 | 58 |      { | 
                                                        
| 59 | -        $filters = array_filter($filters, function ($v) { | 
                                                        |
| 59 | +        $filters = array_filter($filters, function($v) { | 
                                                        |
| 60 | 60 | return count($v) > 0;  | 
                                                        
| 61 | 61 | });  | 
                                                        
| 62 | 62 | |
@@ -96,7 +96,7 @@  | 
                                                    ||
| 96 | 96 | *  | 
                                                        
| 97 | 97 | * @param $id  | 
                                                        
| 98 | 98 | *  | 
                                                        
| 99 | - * @return bool  | 
                                                        |
| 99 | + * @return boolean|null  | 
                                                        |
| 100 | 100 | */  | 
                                                        
| 101 | 101 | public function exists(Identity $id)  | 
                                                        
| 102 | 102 |      { | 
                                                        
@@ -47,7 +47,7 @@ discard block  | 
                                                    ||
| 47 | 47 | *  | 
                                                        
| 48 | 48 | * @param Identity $value  | 
                                                        
| 49 | 49 | *  | 
                                                        
| 50 | - * @return mixed  | 
                                                        |
| 50 | + * @return Identity  | 
                                                        |
| 51 | 51 | */  | 
                                                        
| 52 | 52 | public function add(Identity $value)  | 
                                                        
| 53 | 53 |      { | 
                                                        
@@ -60,7 +60,7 @@ discard block  | 
                                                    ||
| 60 | 60 | /**  | 
                                                        
| 61 | 61 | * Adds a collections of entities to the storage.  | 
                                                        
| 62 | 62 | *  | 
                                                        
| 63 | - * @param array $values  | 
                                                        |
| 63 | + * @param \Jenssegers\Mongodb\Eloquent\Model[] $values  | 
                                                        |
| 64 | 64 | *  | 
                                                        
| 65 | 65 | * @return mixed  | 
                                                        
| 66 | 66 | *  |