mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix CS
This commit is contained in:
@@ -593,14 +593,14 @@ class task_Scheduler
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(function_exists('pcntl_sigprocmask')) {
|
||||
if (function_exists('pcntl_sigprocmask')) {
|
||||
@pcntl_sigprocmask(SIG_BLOCK, array(SIGCHLD));
|
||||
}
|
||||
sleep(1);
|
||||
for ($i = 0; $this->schedstatus=='started' && $i < $sleeptime; $i++) {
|
||||
sleep(1);
|
||||
}
|
||||
if(function_exists('pcntl_sigprocmask')) {
|
||||
if (function_exists('pcntl_sigprocmask')) {
|
||||
@pcntl_sigprocmask(SIG_UNBLOCK, array(SIGCHLD));
|
||||
}
|
||||
}
|
||||
|
@@ -96,7 +96,7 @@ class task_manager
|
||||
|
||||
$classname = $row['class'];
|
||||
if (!class_exists($classname)) {
|
||||
if(substr($classname, 0, 12) == "task_period_") {
|
||||
if (substr($classname, 0, 12) == "task_period_") {
|
||||
$classfile = __DIR__ . "/../../../config/classes/task/period/" . substr($classname, 12) . ".php";
|
||||
if (file_exists($classfile)) {
|
||||
require_once $classfile;
|
||||
|
@@ -168,7 +168,7 @@ class task_period_RecordMover extends task_appboxAbstract
|
||||
, dataType:'json'
|
||||
, type:"POST"
|
||||
, async:true
|
||||
, success:function(data) {
|
||||
, success:function (data) {
|
||||
t = "";
|
||||
for (i in data.tasks) {
|
||||
t += "<div class=\"title\"> ";
|
||||
@@ -210,7 +210,7 @@ class task_period_RecordMover extends task_appboxAbstract
|
||||
, dataType:'json'
|
||||
, type:"POST"
|
||||
, async:true
|
||||
, success:function(data) {
|
||||
, success:function (data) {
|
||||
for (i in data.tasks) {
|
||||
if (data.tasks[i].sql) {
|
||||
if (data.tasks[i].sql.test.err) {
|
||||
@@ -235,11 +235,11 @@ class task_period_RecordMover extends task_appboxAbstract
|
||||
}
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
(function( $ ){
|
||||
$.fn.serializeJSON=function() {
|
||||
function () {
|
||||
(function ($) {
|
||||
$.fn.serializeJSON=function () {
|
||||
var json = {};
|
||||
jQuery.map($(this).serializeArray(), function(n, i){
|
||||
jQuery.map($(this).serializeArray(), function (n, i) {
|
||||
json[n['name']] = n['value'];
|
||||
});
|
||||
|
||||
@@ -251,7 +251,7 @@ class task_period_RecordMover extends task_appboxAbstract
|
||||
'period':{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
|
||||
'delay':{min:0}
|
||||
} ;
|
||||
$(".formElem").change(function(){
|
||||
$(".formElem").change(function () {
|
||||
fieldname = $(this).attr("name");
|
||||
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
|
||||
case "inputtext":
|
||||
|
@@ -170,12 +170,12 @@ class task_period_archive extends task_abstract
|
||||
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function () {
|
||||
var limits = {
|
||||
'period':{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
|
||||
'cold':{'min':<?php echo self::MINCOLD; ?>, 'max':<?php echo self::MAXCOLD; ?>}
|
||||
} ;
|
||||
$(".formElem").change(function(){
|
||||
$(".formElem").change(function () {
|
||||
fieldname = $(this).attr("name");
|
||||
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
|
||||
case "inputtext":
|
||||
@@ -1746,7 +1746,7 @@ class task_period_archive extends task_abstract
|
||||
|
||||
$record = null;
|
||||
|
||||
$postProcess = function($element, $visa, $code) use (&$record) {
|
||||
$postProcess = function ($element, $visa, $code) use (&$record) {
|
||||
$record = $element;
|
||||
};
|
||||
|
||||
|
@@ -174,7 +174,7 @@ class task_period_cindexer extends task_abstract
|
||||
xml = $.parseXML(xml);
|
||||
xml = $(xml);
|
||||
|
||||
var isyes = function(v) {
|
||||
var isyes = function (v) {
|
||||
v = v.toUpperCase().trim();
|
||||
|
||||
return v=='O' || v=='Y' || v=='OUI' || v=='YES' || v=='1';
|
||||
@@ -235,8 +235,8 @@ class task_period_cindexer extends task_abstract
|
||||
$('#cmd').html(cmd);
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#graphicForm *").change(function(){
|
||||
$(document).ready(function () {
|
||||
$("#graphicForm *").change(function () {
|
||||
taskFillGraphic_<?php echo(get_class($this));?>(null);
|
||||
});
|
||||
});
|
||||
|
@@ -105,11 +105,11 @@ class task_period_ftp extends task_appboxAbstract
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function () {
|
||||
var limits = {
|
||||
'period' :{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>}
|
||||
} ;
|
||||
$(".formElem").change(function(){
|
||||
$(".formElem").change(function () {
|
||||
fieldname = $(this).attr("name");
|
||||
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
|
||||
case "inputtext":
|
||||
|
@@ -127,11 +127,11 @@ class task_period_ftpPull extends task_appboxAbstract
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function () {
|
||||
var limits = {
|
||||
'period' :{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>}
|
||||
} ;
|
||||
$(".formElem").change(function(){
|
||||
$(".formElem").change(function () {
|
||||
fieldname = $(this).attr("name");
|
||||
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
|
||||
case "inputtext":
|
||||
|
@@ -181,14 +181,14 @@ class task_period_subdef extends task_databoxAbstract
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function () {
|
||||
var limits = {
|
||||
'period' :{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
|
||||
'flush' :{'min':<?php echo self::MINFLUSH; ?>, 'max':<?php echo self::MAXFLUSH; ?>},
|
||||
'maxrecs':{'min':<?php echo self::MINRECS; ?>, 'max':<?php echo self::MAXRECS; ?>},
|
||||
'maxmegs':{'min':<?php echo self::MINMEGS; ?>, 'max':<?php echo self::MAXMEGS; ?>}
|
||||
} ;
|
||||
$(".formElem").change(function(){
|
||||
$(".formElem").change(function () {
|
||||
fieldname = $(this).attr("name");
|
||||
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
|
||||
case "inputtext":
|
||||
|
@@ -133,13 +133,13 @@ class task_period_writemeta extends task_databoxAbstract
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function () {
|
||||
var limits = {
|
||||
'period':{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
|
||||
'maxrecs':{'min':<?php echo self::MINRECS; ?>, 'max':<?php echo self::MAXRECS; ?>},
|
||||
'maxmegs':{'min':<?php echo self::MINMEGS; ?>, 'max':<?php echo self::MAXMEGS; ?>}
|
||||
} ;
|
||||
$(".formElem").change(function(){
|
||||
$(".formElem").change(function () {
|
||||
fieldname = $(this).attr("name");
|
||||
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
|
||||
case "inputtext":
|
||||
|
Reference in New Issue
Block a user