From c3ce252af3daf55e91e261f8ee123adb506c44c6 Mon Sep 17 00:00:00 2001
From: Henning Leutz <leutz@pcsg.de>
Date: Sat, 12 Nov 2016 10:48:29 +0100
Subject: [PATCH] =?UTF-8?q?refactor:=20psr=20und=20men=C3=BC=20titel=20ver?=
 =?UTF-8?q?bessert?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ajax/add.php         | 1 -
 ajax/delete.php      | 1 -
 ajax/edit.php        | 3 +--
 ajax/execute.php     | 2 --
 ajax/getList.php     | 1 -
 ajax/history/get.php | 4 ++--
 bin/cron.php         | 3 +--
 locale.xml           | 4 ++--
 8 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/ajax/add.php b/ajax/add.php
index 5bfee78..1fe0f1b 100644
--- a/ajax/add.php
+++ b/ajax/add.php
@@ -11,7 +11,6 @@
  * @param String $dayOfWeek
  * @param string $params
  */
-
 QUI::$Ajax->registerFunction(
     'package_quiqqer_cron_ajax_add',
     function ($cron, $min, $hour, $day, $month, $dayOfWeek, $params) {
diff --git a/ajax/delete.php b/ajax/delete.php
index 9c852f5..6971931 100644
--- a/ajax/delete.php
+++ b/ajax/delete.php
@@ -5,7 +5,6 @@
  *
  * @param string $ids - json array
  */
-
 QUI::$Ajax->registerFunction(
     'package_quiqqer_cron_ajax_delete',
     function ($ids) {
diff --git a/ajax/edit.php b/ajax/edit.php
index 42b80ba..f1dd0ac 100644
--- a/ajax/edit.php
+++ b/ajax/edit.php
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Add a cron to the cron list
+ * Edit a cron
  *
  * @param String $cronId
  * @param String $cron
@@ -12,7 +12,6 @@
  * @param String $dayOfWeek
  * @param String $params
  */
-
 QUI::$Ajax->registerFunction(
     'package_quiqqer_cron_ajax_edit',
     function ($cronId, $cron, $min, $hour, $day, $month, $dayOfWeek, $params) {
diff --git a/ajax/execute.php b/ajax/execute.php
index 7988fa9..eb0d344 100644
--- a/ajax/execute.php
+++ b/ajax/execute.php
@@ -3,14 +3,12 @@
 /**
  * Execute the cron list
  */
-
 QUI::$Ajax->registerFunction(
     'package_quiqqer_cron_ajax_execute',
     function () {
         try {
             $Manager = new QUI\Cron\Manager();
             $Manager->execute();
-
         } catch (QUI\Exception $Exception) {
             QUI\System\Log::addError(
                 'package_quiqqer_cron_ajax_execute() :: ' . $Exception->getMessage()
diff --git a/ajax/getList.php b/ajax/getList.php
index fd9a952..0154af9 100644
--- a/ajax/getList.php
+++ b/ajax/getList.php
@@ -5,7 +5,6 @@
  *
  * @return array
  */
-
 QUI::$Ajax->registerFunction(
     'package_quiqqer_cron_ajax_getList',
     function () {
diff --git a/ajax/history/get.php b/ajax/history/get.php
index 21ee5db..3661893 100644
--- a/ajax/history/get.php
+++ b/ajax/history/get.php
@@ -13,8 +13,8 @@ QUI::$Ajax->registerFunction(
         $params      = json_decode($params, true);
 
         return array(
-            'page' => (int)$params['page'],
-            'data' => $CronManager->getHistoryList($params),
+            'page'  => (int)$params['page'],
+            'data'  => $CronManager->getHistoryList($params),
             'total' => $CronManager->getHistoryCount()
         );
     },
diff --git a/bin/cron.php b/bin/cron.php
index 707a3d7..f1058b1 100644
--- a/bin/cron.php
+++ b/bin/cron.php
@@ -27,7 +27,7 @@ try {
         if ($User->getId()) {
             QUI::getSession()->set('uid', $User->getId());
 
-            QUI\Rights\Permission::setUser($User);
+            QUI\Permissions\Permission::setUser($User);
         }
     }
 } catch (QUI\Exception $Exception) {
@@ -41,7 +41,6 @@ try {
 
     $Response->setStatusCode(Response::HTTP_OK);
     $Response->send();
-
 } catch (QUI\Exception $Exception) {
     QUI\System\Log::addAlert($Exception->getMessage(), array(
         'type' => 'cron execution'
diff --git a/locale.xml b/locale.xml
index 128bd89..d33d8bb 100644
--- a/locale.xml
+++ b/locale.xml
@@ -29,8 +29,8 @@
         </locale>
 
         <locale name="settings.title">
-            <de><![CDATA[Cron Einstellungen]]></de>
-            <en><![CDATA[Cron settings]]></en>
+            <de><![CDATA[Cron / Wiederkehrende Aufgaben]]></de>
+            <en><![CDATA[Cron / Recurring tasks]]></en>
         </locale>
         <locale name="settings.cron.title">
             <de><![CDATA[Allgemeine Einstellungen]]></de>
-- 
GitLab