Skip to content

Commit

Permalink
Remove trailling white spaces and file ending php tags
Browse files Browse the repository at this point in the history
  • Loading branch information
neeftarah committed Jun 11, 2015
1 parent c86eb82 commit 5f8d954
Show file tree
Hide file tree
Showing 42 changed files with 437 additions and 473 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
More reporting
More reporting
==============

GLPI Plugin
Expand Down
1 change: 0 additions & 1 deletion ajax/common.tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
}

Html::ajaxFooter();

6 changes: 3 additions & 3 deletions ajax/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
break;

case 'updateWidget':
PluginMreportingDashboard::updateWidget($_POST['id']);
PluginMreportingDashboard::updateWidget($_POST['id']);
break;

case 'getConfig':
PluginMreportingDashboard::getConfig();
PluginMreportingDashboard::getConfig();
break;

case 'centralDashboard' :
Expand All @@ -22,7 +22,7 @@
$dashboard = new PluginMreportingDashboard();
$dashboard->showDashboard(false);
echo "</body>";
echo "</html>";
echo "</html>";
break;

default:
Expand Down
1 change: 0 additions & 1 deletion ajax/dropdownExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,3 @@
}

}

1 change: 0 additions & 1 deletion ajax/dropdownGraphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@
"?name=".$_POST['name']."&classname=".$_POST['classname']."'>".__('Send')."</a>";
}
}

2 changes: 1 addition & 1 deletion ajax/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
header('Location: ../front/central.php');
header('Location: ../front/central.php');
1 change: 0 additions & 1 deletion front/central.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,3 @@
}

Html::footer();

1 change: 0 additions & 1 deletion front/config.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@
Html::footer();

}

1 change: 0 additions & 1 deletion front/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@
}

Html::footer();

6 changes: 0 additions & 6 deletions front/dashboard.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@

Html::footer();
}






1 change: 0 additions & 1 deletion front/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@
Session::addMessageAfterRedirect($LANG['plugin_mreporting']["parser"][3], false, ERROR);
Html::back();
}

1 change: 0 additions & 1 deletion front/export_svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
header("Content-type: image/svg+xml");

echo $_REQUEST['svg_content'];

1 change: 0 additions & 1 deletion front/graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@

$common->showGraph($_REQUEST);
Html::footer();

2 changes: 1 addition & 1 deletion front/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
header('Location: central.php');
header('Location: central.php');
1 change: 0 additions & 1 deletion front/preference.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@
Html::footer();

}

1 change: 0 additions & 1 deletion front/profile.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@

}
Html::back();

9 changes: 4 additions & 5 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function plugin_mreporting_install() {
foreach($queries as $query) {
$DB->query($query);
}

require_once "inc/profile.class.php";
PluginMreportingProfile::createFirstAccess($_SESSION['glpiactiveprofile']['id']);

Expand All @@ -146,9 +146,9 @@ function plugin_mreporting_install() {

//migration of field
$migration->addField('glpi_plugin_mreporting_profiles', 'right', 'char');
$migration->changeField('glpi_plugin_mreporting_profiles', 'reports',
$migration->changeField('glpi_plugin_mreporting_profiles', 'reports',
'reports','integer');
$migration->changeField('glpi_plugin_mreporting_profiles', 'profiles_id',
$migration->changeField('glpi_plugin_mreporting_profiles', 'profiles_id',
'profiles_id','integer');
$migration->dropField('glpi_plugin_mreporting_profiles', 'config');

Expand Down Expand Up @@ -192,7 +192,7 @@ function plugin_mreporting_uninstall() {
);

foreach($tables as $table) {
$migration->dropTable($table);
$migration->dropTable($table);
}

Toolbox::deleteDir(GLPI_PLUGIN_DOC_DIR."/mreporting/notifications");
Expand Down Expand Up @@ -333,4 +333,3 @@ function plugin_mreporting_searchOptionsValues($options = array()) {
}
return false;
}

35 changes: 17 additions & 18 deletions inc/baseclass.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
*/

class PluginMreportingBaseclass {
protected $sql_date,
$sql_date_create,
$sql_date_solve,
$sql_date_closed,
$filters,
protected $sql_date,
$sql_date_create,
$sql_date_solve,
$sql_date_closed,
$filters,
$where_entities;

function __construct($config = array()) {
Expand Down Expand Up @@ -75,18 +75,18 @@ function __construct($config = array()) {

// init default value for status selector
if (!isset($_SESSION['mreporting_values']['status_1'])) {
$_SESSION['mreporting_values']['status_1']
= $_SESSION['mreporting_values']['status_2']
= $_SESSION['mreporting_values']['status_3']
$_SESSION['mreporting_values']['status_1']
= $_SESSION['mreporting_values']['status_2']
= $_SESSION['mreporting_values']['status_3']
= $_SESSION['mreporting_values']['status_4'] = 1;
$_SESSION['mreporting_values']['status_5']
$_SESSION['mreporting_values']['status_5']
= $_SESSION['mreporting_values']['status_6'] = 0;
}

if (!isset($_SESSION['mreporting_values']['period'])) {
$_SESSION['mreporting_values']['period'] = 'month';
}
if (isset($_SESSION['mreporting_values']['period'])
if (isset($_SESSION['mreporting_values']['period'])
&& !empty($_SESSION['mreporting_values']['period'])) {
switch($_SESSION['mreporting_values']['period']) {
case 'day':
Expand Down Expand Up @@ -131,16 +131,15 @@ function __construct($config = array()) {
$this->period_label = '%b %Y';
}

$this->sql_date_create = PluginMreportingCommon::getSQLDate("glpi_tickets.date",
$config['delay'],
$this->sql_date_create = PluginMreportingCommon::getSQLDate("glpi_tickets.date",
$config['delay'],
$config['randname']);
$this->sql_date_solve = PluginMreportingCommon::getSQLDate("glpi_tickets.solvedate",
$config['delay'],
$this->sql_date_solve = PluginMreportingCommon::getSQLDate("glpi_tickets.solvedate",
$config['delay'],
$config['randname']);
$this->sql_date_closed = PluginMreportingCommon::getSQLDate("glpi_tickets.closedate",
$config['delay'],
$config['randname']);
$this->sql_date_closed = PluginMreportingCommon::getSQLDate("glpi_tickets.closedate",
$config['delay'],
$config['randname']);

}
}

Loading

0 comments on commit 5f8d954

Please sign in to comment.