[TASK] Rename getReponseData to getResponseData
[Packages/TYPO3.CMS.git] / typo3 / sysext / lang / Classes / View / Language / GetTranslationsJson.php
index 9ce3a70..b6a8596 100644 (file)
@@ -16,33 +16,33 @@ namespace TYPO3\CMS\Lang\View\Language;
 
 /**
  * JSON view for "getTranslations" action in "Language" controller
- *
- * @author Kai Vogel <k.vogel@reply.de>
  */
-class GetTranslationsJson extends \TYPO3\CMS\Lang\View\AbstractJsonView {
-
-       /**
-        * Returns the response data
-        *
-        * @return array The response data
-        */
-       protected function getReponseData() {
-               $data = array();
-               $languages = $this->variables['languages'];
-               foreach ($this->variables['extensions'] as $extension) {
-                       $extensionArray = $extension->toArray();
-                       $row = array(
-                               $extensionArray,
-                               $extensionArray,
-                       );
-                       foreach ($languages as $language) {
-                               $row[] = $language->toArray();
-                       }
-                       $data[] = $row;
-               }
-               return array(
-                       'data' => $data,
-               );
-       }
-
+class GetTranslationsJson extends \TYPO3\CMS\Lang\View\AbstractJsonView
+{
+    /**
+     * Returns the response data
+     *
+     * @return array The response data
+     */
+    protected function getResponseData()
+    {
+        $data = [];
+        $languages = $this->variables['languages'];
+        foreach ($this->variables['extensions'] as $extension) {
+            /** @var $extension \TYPO3\CMS\Lang\Domain\Model\Extension */
+            $extensionArray = $extension->toArray();
+            $row = [
+                $extensionArray,
+                $extensionArray,
+            ];
+            foreach ($languages as $language) {
+                /** @var $language \TYPO3\CMS\Lang\Domain\Model\Language */
+                $row[] = $language->toArray();
+            }
+            $data[] = $row;
+        }
+        return [
+            'data' => $data,
+        ];
+    }
 }