@@ -251,17 +251,17 @@ public function setQueryRegistry(Doctrine_Query_Registry $registry)
251251 * Open a new connection. If the adapter parameter is set this method acts as
252252 * a short cut for Doctrine_Manager::getInstance()->openConnection($adapter, $name);
253253 *
254- * if the adapter paramater is not set this method acts as
254+ * if the adapter parameter is not set this method acts as
255255 * a short cut for Doctrine_Manager::getInstance()->getCurrentConnection()
256256 *
257- * @param PDO|Doctrine_Adapter_Interface $adapter database driver
258- * @param string $name name of the connection, if empty numeric key is used
259- * @throws Doctrine_Manager_Exception if trying to bind a connection with an existing name
257+ * @param PDO|Doctrine_Adapter_Interface|array|string|null $adapter database driver, DSN or array of connection options
258+ * @param string $name name of the connection, if empty numeric key is used
259+ * @throws Doctrine_Manager_Exception if trying to bind a connection with an existing name
260260 * @return Doctrine_Connection
261261 */
262262 public static function connection ($ adapter = null , $ name = null )
263263 {
264- if ($ adapter == null ) {
264+ if ($ adapter === null ) {
265265 return Doctrine_Manager::getInstance ()->getCurrentConnection ();
266266 } else {
267267 return Doctrine_Manager::getInstance ()->openConnection ($ adapter , $ name );
@@ -271,10 +271,10 @@ public static function connection($adapter = null, $name = null)
271271 /**
272272 * Opens a new connection and saves it to Doctrine_Manager->connections
273273 *
274- * @param PDO|Doctrine_Adapter_Interface|array|string $adapter database driver, DSN or array of connection options
275- * @param string $name name of the connection, if empty numeric key is used
276- * @throws Doctrine_Manager_Exception if trying to bind a connection with an existing name
277- * @throws Doctrine_Manager_Exception if trying to open connection for unknown driver
274+ * @param PDO|Doctrine_Adapter_Interface|array|string $adapter database driver, DSN or array of connection options
275+ * @param string $name name of the connection, if empty numeric key is used
276+ * @throws Doctrine_Manager_Exception if trying to bind a connection with an existing name
277+ * @throws Doctrine_Manager_Exception if trying to open connection for unknown driver
278278 * @return Doctrine_Connection
279279 */
280280 public function openConnection ($ adapter , $ name = null , $ setCurrent = true )
0 commit comments