File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -921,11 +921,12 @@ public function moveItemUp(int $itemId): void
921
921
{
922
922
try {
923
923
$ item = $ this ->getMenuItemSecurely ($ itemId );
924
- if (!$ item ) {
924
+ if (! $ item ) {
925
925
Notification::make ()
926
926
->title (flexiblePagesTrans ('menu_items.errors.item_not_found ' ))
927
927
->danger ()
928
928
->send ();
929
+
929
930
return ;
930
931
}
931
932
@@ -936,15 +937,15 @@ public function moveItemUp(int $itemId): void
936
937
937
938
// Refresh the tree to show new order
938
939
$ this ->refreshTree ();
939
-
940
+
940
941
Notification::make ()
941
942
->title ('Menu item moved up successfully. ' )
942
943
->success ()
943
944
->send ();
944
945
}
945
946
} catch (Exception $ e ) {
946
947
Notification::make ()
947
- ->title ('Failed to move menu item: ' . $ e ->getMessage ())
948
+ ->title ('Failed to move menu item: ' . $ e ->getMessage ())
948
949
->danger ()
949
950
->send ();
950
951
}
@@ -954,11 +955,12 @@ public function moveItemDown(int $itemId): void
954
955
{
955
956
try {
956
957
$ item = $ this ->getMenuItemSecurely ($ itemId );
957
- if (!$ item ) {
958
+ if (! $ item ) {
958
959
Notification::make ()
959
960
->title (flexiblePagesTrans ('menu_items.errors.item_not_found ' ))
960
961
->danger ()
961
962
->send ();
963
+
962
964
return ;
963
965
}
964
966
@@ -969,15 +971,15 @@ public function moveItemDown(int $itemId): void
969
971
970
972
// Refresh the tree to show new order
971
973
$ this ->refreshTree ();
972
-
974
+
973
975
Notification::make ()
974
976
->title ('Menu item moved down successfully. ' )
975
977
->success ()
976
978
->send ();
977
979
}
978
980
} catch (Exception $ e ) {
979
981
Notification::make ()
980
- ->title ('Failed to move menu item: ' . $ e ->getMessage ())
982
+ ->title ('Failed to move menu item: ' . $ e ->getMessage ())
981
983
->danger ()
982
984
->send ();
983
985
}
You can’t perform that action at this time.
0 commit comments