@@ -88,7 +88,7 @@ public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $conn
88
88
parent ::__construct ();
89
89
90
90
if (!$ connection ) {
91
- throw new \Exception ('Wrong "$connection" parametr ' );
91
+ throw new \Exception ('Wrong "$connection" parametr ' ); // phpcs:ignore
92
92
}
93
93
94
94
$ this ->_conn = $ connection ;
@@ -104,7 +104,7 @@ public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $conn
104
104
$ fields [self ::ORDER_FIELD ]
105
105
)
106
106
) {
107
- throw new \Exception ('"$fields" tree configuratin array ' );
107
+ throw new \Exception ('"$fields" tree configuratin array ' ); // phpcs:ignore
108
108
}
109
109
110
110
$ this ->_idField = $ fields [self ::ID_FIELD ];
@@ -141,8 +141,8 @@ public function setDbSelect($select)
141
141
/**
142
142
* Load tree
143
143
*
144
- * @param int|Node $parentNode
145
- * @param int $recursionLevel
144
+ * @param int|Node $parentNode
145
+ * @param int $recursionLevel
146
146
*
147
147
* @return $this
148
148
* @throws \Exception
@@ -158,7 +158,7 @@ public function load($parentNode = null, $recursionLevel = 100)
158
158
$ parentId = $ parentNode ;
159
159
$ parentNode = null ;
160
160
} else {
161
- throw new \Exception ('root node id is not defined ' );
161
+ throw new \Exception ('root node id is not defined ' ); // phpcs:ignore
162
162
}
163
163
164
164
$ select = clone $ this ->_select ;
@@ -285,7 +285,7 @@ public function moveNodeTo($node, $parentNode, $prevNode = null)
285
285
$ this ->_conn ->commit ();
286
286
} catch (\Exception $ e ) {
287
287
$ this ->_conn ->rollBack ();
288
- throw new \Exception ('Can \'t move tree node ' );
288
+ throw new \Exception ('Can \'t move tree node ' ); // phpcs:ignore
289
289
}
290
290
}
291
291
@@ -376,7 +376,7 @@ public function removeNode($node)
376
376
$ this ->_conn ->commit ();
377
377
} catch (\Exception $ e ) {
378
378
$ this ->_conn ->rollBack ();
379
- throw new \Exception ('Can \'t remove tree node ' );
379
+ throw new \Exception ('Can \'t remove tree node ' ); // phpcs:ignore
380
380
}
381
381
382
382
parent ::removeNode ($ node );
0 commit comments