Skip to content

Updated Db.php and Dbp.php #33183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/internal/Magento/Framework/Data/Tree/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
*
* Data model:
* id | pid | level | order
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Db extends \Magento\Framework\Data\Tree
{
Expand Down Expand Up @@ -92,7 +90,7 @@ public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $conn
parent::__construct();

if (!$connection) {
throw new \Exception('Wrong "$connection" parametr');
throw new \Exception('Wrong "$connection" parameter');
}

$this->_conn = $connection;
Expand Down
4 changes: 1 addition & 3 deletions lib/internal/Magento/Framework/Data/Tree/Dbp.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*
* Data model:
* id | path | order
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Dbp extends \Magento\Framework\Data\Tree
{
Expand Down Expand Up @@ -102,7 +100,7 @@ public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $conn

if (!$connection) {
// phpcs:ignore Magento2.Exceptions.DirectThrow
throw new \Exception('Wrong "$connection" parametr');
throw new \Exception('Wrong "$connection" parameter');
}

$this->_conn = $connection;
Expand Down