refactor: move method calls to outside of the loop
refactor: move method calls to outside of the loop

kenjis/CodeIgniter4,bcit-ci/CodeIgniter4,kenjis/CodeIgniter4,bcit-ci/CodeIgniter4,kenjis/CodeIgniter4,bcit-ci/CodeIgniter4,kenjis/CodeIgniter4,bcit-ci/CodeIgniter4,kenjis/CodeIgniter4,bcit-ci/CodeIgniter4