@@ -88,7 +88,7 @@ public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $conn
8888 parent ::__construct ();
8989
9090 if (!$ connection ) {
91- throw new \Exception ('Wrong "$connection" parametr ' );
91+ throw new \Exception ('Wrong "$connection" parametr ' ); // phpcs:ignore
9292 }
9393
9494 $ this ->_conn = $ connection ;
@@ -104,7 +104,7 @@ public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $conn
104104 $ fields [self ::ORDER_FIELD ]
105105 )
106106 ) {
107- throw new \Exception ('"$fields" tree configuratin array ' );
107+ throw new \Exception ('"$fields" tree configuratin array ' ); // phpcs:ignore
108108 }
109109
110110 $ this ->_idField = $ fields [self ::ID_FIELD ];
@@ -141,8 +141,8 @@ public function setDbSelect($select)
141141 /**
142142 * Load tree
143143 *
144- * @param int|Node $parentNode
145- * @param int $recursionLevel
144+ * @param int|Node $parentNode
145+ * @param int $recursionLevel
146146 *
147147 * @return $this
148148 * @throws \Exception
@@ -158,7 +158,7 @@ public function load($parentNode = null, $recursionLevel = 100)
158158 $ parentId = $ parentNode ;
159159 $ parentNode = null ;
160160 } else {
161- throw new \Exception ('root node id is not defined ' );
161+ throw new \Exception ('root node id is not defined ' ); // phpcs:ignore
162162 }
163163
164164 $ select = clone $ this ->_select ;
@@ -285,7 +285,7 @@ public function moveNodeTo($node, $parentNode, $prevNode = null)
285285 $ this ->_conn ->commit ();
286286 } catch (\Exception $ e ) {
287287 $ this ->_conn ->rollBack ();
288- throw new \Exception ('Can \'t move tree node ' );
288+ throw new \Exception ('Can \'t move tree node ' ); // phpcs:ignore
289289 }
290290 }
291291
@@ -376,7 +376,7 @@ public function removeNode($node)
376376 $ this ->_conn ->commit ();
377377 } catch (\Exception $ e ) {
378378 $ this ->_conn ->rollBack ();
379- throw new \Exception ('Can \'t remove tree node ' );
379+ throw new \Exception ('Can \'t remove tree node ' ); // phpcs:ignore
380380 }
381381
382382 parent ::removeNode ($ node );
0 commit comments