Completed
Push — master ( b72433...10ced4 )
by Julián
02:22
created
src/CouchDBBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $this->wipe();
64 64
         }
65 65
 
66
-        if (!$this->manager instanceof DocumentManager) {
66
+        if ( ! $this->manager instanceof DocumentManager) {
67 67
             $this->manager = $this->buildManager();
68 68
         }
69 69
 
@@ -152,13 +152,13 @@  discard block
 block discarded – undo
152 152
      */
153 153
     protected function getRepositoryFactory()
154 154
     {
155
-        if (!array_key_exists('repository_factory', $this->options)) {
155
+        if ( ! array_key_exists('repository_factory', $this->options)) {
156 156
             return;
157 157
         }
158 158
 
159 159
         $repositoryFactory = $this->options['repository_factory'];
160 160
 
161
-        if (!$repositoryFactory instanceof RepositoryFactory) {
161
+        if ( ! $repositoryFactory instanceof RepositoryFactory) {
162 162
             throw new \InvalidArgumentException(sprintf(
163 163
                 'Invalid factory class "%s". It must be a Jgut\Doctrine\ManagerBuilder\CouchDB\RepositoryFactory.',
164 164
                 get_class($repositoryFactory)
@@ -208,9 +208,9 @@  discard block
 block discarded – undo
208 208
 
209 209
         if ($commandPrefix !== '') {
210 210
             $commands = array_map(
211
-                function (Command $command) use ($commandPrefix) {
211
+                function(Command $command) use ($commandPrefix) {
212 212
                     $commandNames = array_map(
213
-                        function ($commandName) use ($commandPrefix) {
213
+                        function($commandName) use ($commandPrefix) {
214 214
                             return preg_replace('/^couchdb:/', $commandPrefix . ':', $commandName);
215 215
                         },
216 216
                         array_merge([$command->getName()], $command->getAliases())
Please login to merge, or discard this patch.