11<?php
22
3- class NestedSet_Model_Builder
3+ class Nestedset_Model_Builder
44{
55 /**
66 * Add an element to the end of the tree.
@@ -23,8 +23,7 @@ public function append(NestedSet_Model $nestedset, $name)
2323
2424 if (false === $ result ) {
2525 $ result = 0 ;
26- }
27- else {
26+ } else {
2827 $ result = $ result ['max ' ];
2928 }
3029
@@ -43,8 +42,7 @@ public function append(NestedSet_Model $nestedset, $name)
4342
4443 $ db ->insert ($ nestedset ->getTableName (), $ values );
4544 $ db ->commit ();
46- }
47- catch (Exception $ e ) {
45+ } catch (Exception $ e ) {
4846 $ db ->rollBack ();
4947 throw $ e ;
5048 }
@@ -110,8 +108,7 @@ public function addInto(NestedSet_Model $nestedset, $name, $reference)
110108
111109 $ db ->insert ($ nestedset ->getTableName (), $ values );
112110 $ db ->commit ();
113- }
114- catch (Exception $ e ) {
111+ } catch (Exception $ e ) {
115112 $ db ->rollBack ();
116113 throw $ e ;
117114 }
@@ -192,8 +189,7 @@ public function moveInto(NestedSet_Model $nestedset, array $element, array $refe
192189 " );
193190
194191 $ db ->commit ();
195- }
196- catch (Exception $ e ) {
192+ } catch (Exception $ e ) {
197193 $ db ->rollBack ();
198194 throw $ e ;
199195 }
@@ -238,8 +234,7 @@ public function deleteRecursive(NestedSet_Model $nestedset, array $tree)
238234 " );
239235
240236 $ db ->commit ();
241- }
242- catch (Exception $ e ) {
237+ } catch (Exception $ e ) {
243238 $ db ->rollBack ();
244239 throw $ e ;
245240 }
@@ -299,8 +294,7 @@ public function deleteNonRecursive(NestedSet_Model $nestedset, array $tree)
299294 " );
300295
301296 $ db ->commit ();
302- }
303- catch (Exception $ e ) {
297+ } catch (Exception $ e ) {
304298 $ db ->rollBack ();
305299 throw $ e ;
306300 }
0 commit comments