Completed
Branch develop (12908d)
by
unknown
18:02
created
htdocs/opensurvey/class/opensurveysondage.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	/**
103 103
 	 * @var array  Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
104 104
 	 */
105
-	public $fields=array(
105
+	public $fields = array(
106 106
 		'id_sondage' => array('type'=>'varchar(16)', 'label'=>'Idsondage', 'enabled'=>'1', 'position'=>10, 'notnull'=>1, 'visible'=>-1,),
107 107
 		'commentaires' => array('type'=>'mediumtext', 'label'=>'Commentaires', 'enabled'=>'1', 'position'=>15, 'notnull'=>0, 'visible'=>-1,),
108 108
 		'mail_admin' => array('type'=>'varchar(128)', 'label'=>'Mailadmin', 'enabled'=>'1', 'position'=>20, 'notnull'=>0, 'visible'=>-1,),
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 		$result .= $linkend;
567 567
 
568 568
 		global $action;
569
-		$hookmanager->initHooks(array($this->element . 'dao'));
569
+		$hookmanager->initHooks(array($this->element.'dao'));
570 570
 		$parameters = array('id'=>$this->id, 'getnomurl' => &$result);
571 571
 		$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
572 572
 		if ($reshook > 0) {
Please login to merge, or discard this patch.
dev/tools/apstats.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 
26 26
 $sapi_type = php_sapi_name();
27 27
 $script_file = basename(__FILE__);
28
-$path = dirname(__FILE__) . '/';
28
+$path = dirname(__FILE__).'/';
29 29
 
30 30
 // Test si mode batch
31 31
 $sapi_type = php_sapi_name();
32 32
 if (substr($sapi_type, 0, 3) == 'cgi') {
33
-	echo "Error: You are using PHP for CGI. To execute " . $script_file . " from command line, you must use PHP for CLI mode.\n";
33
+	echo "Error: You are using PHP for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";
34 34
 	exit();
35 35
 }
36 36
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
 
186 186
 // Get stats on nb of commits
187
-$commandcheck = "git log --shortstat --no-renames --no-merges --use-mailmap --pretty='format:%cI;%H;%aN;%aE;%ce;%s' --since='".dol_print_date(dol_now() - $delay, '%Y-%m-%d');"'";	// --since=  --until=...
187
+$commandcheck = "git log --shortstat --no-renames --no-merges --use-mailmap --pretty='format:%cI;%H;%aN;%aE;%ce;%s' --since='".dol_print_date(dol_now() - $delay, '%Y-%m-%d'); "'"; // --since=  --until=...
188 188
 print 'Execute git log to get list of commits: '.$commandcheck."\n";
189 189
 $output_arrglpu = array();
190 190
 $resexecglpu = 0;
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 $delay = (3600 * 24 * 30 * $nbofmonth);
197 197
 $arrayofalerts = array();
198 198
 
199
-$commandcheck = "git log --first-parent --shortstat --no-renames --no-merges --use-mailmap --pretty='format:%cI;%H;%aN;%aE;%ce;%s' --since='".dol_print_date(dol_now() - $delay, '%Y-%m-%d');"' | grep yogosha";
199
+$commandcheck = "git log --first-parent --shortstat --no-renames --no-merges --use-mailmap --pretty='format:%cI;%H;%aN;%aE;%ce;%s' --since='".dol_print_date(dol_now() - $delay, '%Y-%m-%d'); "' | grep yogosha";
200 200
 print 'Execute git log to get commits of security: '.$commandcheck."\n";
201 201
 $output_arrglpu = array();
202 202
 $resexecglpu = 0;
Please login to merge, or discard this patch.