@@ -65,6 +65,7 @@ public function addAction(): ResponseInterface
6565 if ($ this ->isPost ()) {
6666 $ this ->adminForm ->setData ($ this ->getPostParams ());
6767 if ($ this ->adminForm ->isValid ()) {
68+ /** @var array $result */
6869 $ result = $ this ->adminForm ->getData ();
6970 try {
7071 $ this ->adminService ->createAdmin ($ result );
@@ -109,6 +110,7 @@ public function editAction(): ResponseInterface
109110 $ this ->adminForm ->setData ($ this ->getPostParams ());
110111 $ this ->adminForm ->setDifferentInputFilter (new EditAdminInputFilter ());
111112 if ($ this ->adminForm ->isValid ()) {
113+ /** @var array $result */
112114 $ result = $ this ->adminForm ->getData ();
113115 try {
114116 $ this ->adminService ->updateAdmin ($ admin , $ result );
@@ -205,6 +207,8 @@ public function loginAction(): ResponseInterface
205207 if ($ form ->isValid ()) {
206208 /** @var AuthenticationAdapter $adapter */
207209 $ adapter = $ this ->authenticationService ->getAdapter ();
210+
211+ /** @var array $data */
208212 $ data = $ form ->getData ();
209213 $ adapter ->setIdentity ($ data ['username ' ]);
210214 $ adapter ->setCredential ($ data ['password ' ]);
@@ -265,6 +269,7 @@ public function accountAction(): ResponseInterface
265269 if ($ this ->isPost ()) {
266270 $ form ->setData ($ this ->getPostParams ());
267271 if ($ form ->isValid ()) {
272+ /** @var array $result */
268273 $ result = $ form ->getData ();
269274 try {
270275 $ this ->adminService ->updateAdmin ($ admin , $ result );
@@ -300,6 +305,7 @@ public function changePasswordAction(): ResponseInterface
300305 if ($ this ->isPost ()) {
301306 $ changePasswordForm ->setData ($ this ->getPostParams ());
302307 if ($ changePasswordForm ->isValid ()) {
308+ /** @var array $result */
303309 $ result = $ changePasswordForm ->getData ();
304310 if (password_verify ($ result ['currentPassword ' ], $ admin ->getPassword ())) {
305311 try {
0 commit comments