Skip to content
Code-Schnipsel Gruppen Projekte
Commit 89a75e6c erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

style: code style, quiqqer/utils 1.4

Übergeordneter 09187cac
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
{ {
"name" : "quiqqer/cron", "name": "quiqqer/cron",
"type" : "quiqqer-module", "type": "quiqqer-module",
"description" : "Provided currency calculation and a automtatic cron to get the Euro foreign exchange reference rates.", "description": "Provided currency calculation and a automtatic cron to get the Euro foreign exchange reference rates.",
"version" : "dev-dev", "version": "dev-dev",
"license" : "GPL-2.0+", "license": "GPL-2.0+",
"authors": [
"authors" : [{ {
"name": "Henning Leutz", "name": "Henning Leutz",
"email": "leutz@pcsg.de", "email": "leutz@pcsg.de",
"homepage": "http://www.pcsg.de", "homepage": "http://www.pcsg.de",
"role": "Developer" "role": "Developer"
}],
"support" : {
"email" : "support@pcsg.de"
},
"require": {
"quiqqer/quiqqer" : "*@dev",
"mtdowling/cron-expression": "1.0.*"
},
"autoload": {
"psr-0" : {
"QUI" : "src/"
}
} }
],
"support": {
"email": "support@pcsg.de"
},
"require": {
"quiqqer/quiqqer": "*@dev",
"quiqqer/utils": ">=1.4",
"mtdowling/cron-expression": "1.0.*"
},
"autoload": {
"psr-0": {
"QUI": "src/"
}
}
} }
...@@ -111,7 +111,6 @@ class Manager ...@@ -111,7 +111,6 @@ class Manager
CronExpression::factory( CronExpression::factory(
"$min $hour $day $month $dayOfWeek" "$min $hour $day $month $dayOfWeek"
); );
} catch (\Exception $Exception) { } catch (\Exception $Exception) {
throw new QUI\Exception($Exception->getMessage()); throw new QUI\Exception($Exception->getMessage());
} }
...@@ -237,7 +236,6 @@ class Manager ...@@ -237,7 +236,6 @@ class Manager
// execute cron // execute cron
try { try {
$this->executeCron($entry['id']); $this->executeCron($entry['id']);
} catch (\Exception $Exception) { } catch (\Exception $Exception) {
$message = print_r($entry, true); $message = print_r($entry, true);
$message .= "\n" . $Exception->getMessage(); $message .= "\n" . $Exception->getMessage();
...@@ -418,7 +416,6 @@ class Manager ...@@ -418,7 +416,6 @@ class Manager
$crons[$cronData['id']] = $cronData; $crons[$cronData['id']] = $cronData;
} }
foreach ($data as $entry) { foreach ($data as $entry) {
$entry['cronTitle'] = ''; $entry['cronTitle'] = '';
$entry['username'] = ''; $entry['username'] = '';
...@@ -429,7 +426,6 @@ class Manager ...@@ -429,7 +426,6 @@ class Manager
try { try {
$entry['username'] = $Users->get($entry['uid'])->getName(); $entry['username'] = $Users->get($entry['uid'])->getName();
} catch (QUI\Exception $Exception) { } catch (QUI\Exception $Exception) {
} }
...@@ -534,7 +530,7 @@ class Manager ...@@ -534,7 +530,7 @@ class Manager
return array(); return array();
} }
$Dom = QUI\Utils\XML::getDomFromXml($file); $Dom = QUI\Utils\Text\XML::getDomFromXml($file);
$crons = $Dom->getElementsByTagName('crons'); $crons = $Dom->getElementsByTagName('crons');
if (!$crons || !$crons->length) { if (!$crons || !$crons->length) {
...@@ -565,7 +561,6 @@ class Manager ...@@ -565,7 +561,6 @@ class Manager
if ($Title->length) { if ($Title->length) {
$title = QUI\Utils\DOM::getTextFromNode($Title->item(0)); $title = QUI\Utils\DOM::getTextFromNode($Title->item(0));
\QUI\System\Log::writeRecursive($title);
} }
if ($Desc->length) { if ($Desc->length) {
......
...@@ -132,7 +132,6 @@ class QuiqqerCrons ...@@ -132,7 +132,6 @@ class QuiqqerCrons
$Site->deactivate(); $Site->deactivate();
$deactivate[] = (int)$entry['id']; $deactivate[] = (int)$entry['id'];
} catch (QUI\Exception $Exception) { } catch (QUI\Exception $Exception) {
QUI\System\Log::writeException($Exception); QUI\System\Log::writeException($Exception);
} }
...@@ -166,7 +165,6 @@ class QuiqqerCrons ...@@ -166,7 +165,6 @@ class QuiqqerCrons
$Site->activate(); $Site->activate();
$activate[] = (int)$entry['id']; $activate[] = (int)$entry['id'];
} catch (QUI\Exception $Exception) { } catch (QUI\Exception $Exception) {
QUI\System\Log::writeException($Exception); QUI\System\Log::writeException($Exception);
} }
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren