Skip to content

Commit

Permalink
Remove useless constant
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTallet committed Jul 12, 2020
1 parent f04e334 commit cfcfbc6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,3 @@
* @var string
*/
define('MPG_MONGODB_PORT', '27017');

/**
* MongoDB server database.
*
* @var string
*/
define('MPG_MONGODB_DATABASE', '');
4 changes: 0 additions & 4 deletions src/Helpers/MongoDBHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ public static function createClient() : MongoDBClient {
$clientUri .= ':' . MPG_MONGODB_PORT;
}

if ( !empty(MPG_MONGODB_DATABASE) ) {
$clientUri .= '/' . MPG_MONGODB_DATABASE;
}

return new MongoDBClient($clientUri);

}
Expand Down

0 comments on commit cfcfbc6

Please sign in to comment.