Skip to content

Commit

Permalink
Coding standards using phpbcf
Browse files Browse the repository at this point in the history
  • Loading branch information
amma35 committed Feb 9, 2018
1 parent 3acf9f7 commit 994fa70
Show file tree
Hide file tree
Showing 18 changed files with 566 additions and 576 deletions.
14 changes: 7 additions & 7 deletions ajax/dropdownAllItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-------------------------------------------------------------------------
LICENSE
This file is part of consumables.
consumables is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -49,11 +49,11 @@

$field_id = Html::cleanId("dropdown_" . $_POST["name"] . $rand);

$p = array('value' => 0,
$p = ['value' => 0,
'valuename' => Dropdown::EMPTY_VALUE,
'itemtype' => $_POST["idtable"],
'display_emptychoice' => true,
'displaywith' => array('otherserial', 'serial'));
'displaywith' => ['otherserial', 'serial']];
if (isset($_POST['value'])) {
$p['value'] = $_POST['value'];
}
Expand All @@ -65,7 +65,7 @@
}
if ($_POST['idtable'] == 'Group') {
$groups = Group_User::getUserGroups(Session::getLoginUserID());
$user_groups = array();
$user_groups = [];
foreach ($groups as $group) {
$user_groups[] = $group['id'];
}
Expand All @@ -77,8 +77,8 @@
$p);

if (!empty($_POST['showItemSpecificity'])) {
$params = array('items_id' => '__VALUE__',
'itemtype' => $_POST["idtable"]);
$params = ['items_id' => '__VALUE__',
'itemtype' => $_POST["idtable"]];
if (isset($_POST['entity_restrict'])) {
$params['entity_restrict'] = $_POST['entity_restrict'];
}
Expand All @@ -88,4 +88,4 @@

echo "<br><span id='showItemSpecificity_" . $_POST["name"] . "$rand'>&nbsp;</span>\n";
}
}
}
4 changes: 2 additions & 2 deletions ajax/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-------------------------------------------------------------------------
LICENSE
This file is part of consumables.
consumables is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -79,4 +79,4 @@
$request = new PluginConsumablesRequest();
$request->loadAvailableConsumablesNumber($_POST['consumables_id']);
break;
}
}
181 changes: 90 additions & 91 deletions consumables.css
Original file line number Diff line number Diff line change
@@ -1,91 +1,90 @@

.consumables_wizard_rank {
margin: 0 auto;
padding: 5px;
border: 1px solid #ccc;
z-index: 1;
text-align: left;
font-size: 14px;
width: 100%;
background-color: #ffffff;

-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;

-moz-box-shadow: 0px 2px 5px #666;
-webkit-box-shadow: 0px 2px 5px #666;
box-shadow: 0px 2px 5px #666;
}

.consumables_wizard_title {
font-size: 18px;
text-align: center;
margin-bottom: 5px;
color: black;
}

.consumables_wizard_img {
vertical-align: middle;
width: 64px;
height: 64px;
}

.consumables_menu_img {
width: 64px;
height: 64px;
/*padding: 10px;*/
}

.consumables_wizard_button {
height: 35px;
border-top: 2px outset black;
}

.consumable_previous_button {
float: left;
}

.consumable_next_button {
float: right;
}

.consumables_wizard {
margin: 0 auto;
display: table;
padding: 5px;
text-align: left;
font-size: 14px;
width: 900px;
background-color: #fff;
}

.consumables_wizard_form {
width: auto;
margin: 0 auto;
}

.consumables_wizard_form td {
padding: 5px;
}

.consumables_wizard_red {
margin-left: 5px;
color: red;
}

.consumables_menu_a {
display: block;
width: 150px;
height: 100px;
margin-top: 30px;
margin-bottom: 30px;
}

td.consumables_menu_item {
border: solid 1px #fff;
}

td.consumables_menu_item:hover {
border: solid 1px #535b5c;
}
.consumables_wizard_rank {
margin: 0 auto;
padding: 5px;
border: 1px solid #ccc;
z-index: 1;
text-align: left;
font-size: 14px;
width: 100%;
background-color: #ffffff;

-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;

-moz-box-shadow: 0px 2px 5px #666;
-webkit-box-shadow: 0px 2px 5px #666;
box-shadow: 0px 2px 5px #666;
}

.consumables_wizard_title {
font-size: 18px;
text-align: center;
margin-bottom: 5px;
color: black;
}

.consumables_wizard_img {
vertical-align: middle;
width: 64px;
height: 64px;
}

.consumables_menu_img {
width: 64px;
height: 64px;
/*padding: 10px;*/
}

.consumables_wizard_button {
height: 35px;
border-top: 2px outset black;
}

.consumable_previous_button {
float: left;
}

.consumable_next_button {
float: right;
}

.consumables_wizard {
margin: 0 auto;
display: table;
padding: 5px;
text-align: left;
font-size: 14px;
width: 900px;
background-color: #fff;
}

.consumables_wizard_form {
width: auto;
margin: 0 auto;
}

.consumables_wizard_form td {
padding: 5px;
}

.consumables_wizard_red {
margin-left: 5px;
color: red;
}

.consumables_menu_a {
display: block;
width: 150px;
height: 100px;
margin-top: 30px;
margin-bottom: 30px;
}

td.consumables_menu_item {
border: solid 1px #fff;
}

td.consumables_menu_item:hover {
border: solid 1px #535b5c;
}
Loading

0 comments on commit 994fa70

Please sign in to comment.