Passed
Pull Request — master (#84)
by Csaba
02:32
created
src/Database/MongoDB/Finder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@
 block discarded – undo
74 74
         $this->filter = [];
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $logical
79
+     */
77 80
     protected function parseWhere($conditions, $logical)
78 81
     {
79 82
         $subGroup = [];
Please login to merge, or discard this patch.
src/Database/MongoDB/Database.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
     public function __construct(Client $client = null, $databaseName = null)
20 20
     {
21 21
         $this->client = $client === null ?
22
-            new Client(self::getUri(), self::getUriOptions(), self::getDriverOptions()) :
23
-            $client;
22
+            new Client(self::getUri(), self::getUriOptions(), self::getDriverOptions()) : $client;
24 23
         $this->databaseName = $databaseName === null ? getenv('MONGODB_DATABASE') : $databaseName;
25 24
     }
26 25
 
Please login to merge, or discard this patch.
src/Database/MongoDB/Resource.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
         $this->resourceName = $resourceName;
19 19
         $this->primaryKey = $primaryKey;
20 20
         $this->client = $client === null ?
21
-            new Client(Database::getUri(), Database::getUriOptions(), Database::getDriverOptions()) :
22
-            $client;
21
+            new Client(Database::getUri(), Database::getUriOptions(), Database::getDriverOptions()) : $client;
23 22
         $this->databaseName = $databaseName === null ? getenv('MONGODB_DATABASE') : $databaseName;
24 23
         $mongodb = $this->client->selectDatabase($this->databaseName);
25 24
         $this->collection = $mongodb->selectCollection($this->resourceName);
Please login to merge, or discard this patch.