Completed
Push — master ( e876a4...a7100c )
by Michael
01:36
created
blocks/equipment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     $form           .= MB_EQUIPMENT_CATTODISPLAY . "<br><select name='options[]' multiple='multiple' size='5'>";
89 89
     $form           .= "<option value='0' " . (in_array(0, $options) === false ? '' : "selected='selected'") . '>' . MB_EQUIPMENT_ALLCAT . '</option>';
90 90
     foreach (array_keys($equipmentArray) as $i) {
91
-        $id   = $equipmentArray[$i]->getVar('id');
91
+        $id = $equipmentArray[$i]->getVar('id');
92 92
         $form .= "<option value='" . $id . "' " . (in_array($id, $options) === false ? '' : "selected='selected'") . '>' . $equipmentArray[$i]->getVar('name') . '</option>';
93 93
     }
94 94
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     $form          .= MB_EQUIPMENT_CATTODISPLAY . "<br><select name='options[]' multiple='multiple' size='5'>";
87 87
     $form          .= "<option value='0' " . (in_array(0, $options) === false ? '' : "selected='selected'") . '>' . MB_EQUIPMENT_ALLCAT . '</option>';
88 88
     foreach (array_keys($customerArray) as $i) {
89
-        $id   = $customerArray[$i]->getVar('id');
89
+        $id = $customerArray[$i]->getVar('id');
90 90
         $form .= "<option value='" . $id . "' " . (in_array($id, $options) === false ? '' : "selected='selected'") . '>' . $customerArray[$i]->getVar('last') . '</option>';
91 91
     }
92 92
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/rentals.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     $form         .= MB_EQUIPMENT_CATTODISPLAY . "<br><select name='options[]' multiple='multiple' size='5'>";
88 88
     $form         .= "<option value='0' " . (in_array(0, $options) === false ? '' : "selected='selected'") . '>' . MB_EQUIPMENT_ALLCAT . '</option>';
89 89
     foreach (array_keys($rentalsArray) as $i) {
90
-        $id   = $rentalsArray[$i]->getVar('id');
90
+        $id = $rentalsArray[$i]->getVar('id');
91 91
         $form .= "<option value='" . $id . "' " . (in_array($id, $options) === false ? '' : "selected='selected'") . '>' . $rentalsArray[$i]->getVar('customerid') . '</option>';
92 92
     }
93 93
     $form .= '</select>';
Please login to merge, or discard this patch.
admin/equipment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $criteria->setLimit($equipmentPaginationLimit);
57 57
         $criteria->setStart($start);
58 58
         $equipmentTempRows  = $equipmentHandler->getCount();
59
-        $equipmentTempArray = $equipmentHandler->getAll($criteria);/*
59
+        $equipmentTempArray = $equipmentHandler->getAll($criteria); /*
60 60
 //
61 61
 // 
62 62
                     <th class='center width5'>".AM_EQUIPMENT_FORM_ACTION."</th>
Please login to merge, or discard this patch.
admin/rentals_vue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 if ($xoopsDB->getRowsNum($query1) > 0) {
58 58
     while ($row = $xoopsDB->fetchArray($query1)) {
59 59
         $row['permission'] = ($row['owner'] == $owner);
60
-        $query_rows1[]      = $row;
60
+        $query_rows1[] = $row;
61 61
     }
62 62
 }
63 63
 
Please login to merge, or discard this patch.
admin/customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $criteria->setLimit($customerPaginationLimit);
57 57
         $criteria->setStart($start);
58 58
         $customerTempRows  = $customerHandler->getCount();
59
-        $customerTempArray = $customerHandler->getAll($criteria);/*
59
+        $customerTempArray = $customerHandler->getAll($criteria); /*
60 60
 //
61 61
 // 
62 62
                     <th class='center width5'>".AM_EQUIPMENT_FORM_ACTION."</th>
Please login to merge, or discard this patch.
admin/crud/borrow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 include __DIR__ . '/../../../../mainfile.php';
19 19
 global $xoopsDB, $xoopsUser;
20 20
 if ($xoopsUser) {
21
-    $borrow_data = array_filter(array_map('intval', $_POST['borrow_number']), function ($val) {
21
+    $borrow_data = array_filter(array_map('intval', $_POST['borrow_number']), function($val) {
22 22
         return $val > 0;
23 23
     });
24 24
 
Please login to merge, or discard this patch.
admin/rentals.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $criteria->setStart($start);
58 58
     /** @var EquipmentRentalsHandler $rentalsHandler */
59 59
         $rentalsTempRows = $rentalsHandler->getCount();
60
-        $rentalsTempArray = $rentalsHandler->getAll($criteria);/*
60
+        $rentalsTempArray = $rentalsHandler->getAll($criteria); /*
61 61
 //
62 62
 // 
63 63
                     <th class='center width5'>".AM_EQUIPMENT_FORM_ACTION."</th>
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
 
104 104
                 $selectorcustomerid = EquipmentUtility::selectSorting(AM_EQUIPMENT_RENTALS_CUSTOMERID, 'customerid');
105 105
                 $GLOBALS['xoopsTpl']->assign('selectorcustomerid', $selectorcustomerid);
106
-                if(null !==($customerHandler->get($rentalsTempArray[$i]->getVar('customerid')))) {
106
+                if (null !== ($customerHandler->get($rentalsTempArray[$i]->getVar('customerid')))) {
107 107
                     $rentalsArray['customerid'] = $customerHandler->get($rentalsTempArray[$i]->getVar('customerid'))->getVar('last');
108 108
                 }
109 109
 
110 110
                 $selectorequipmentid = EquipmentUtility::selectSorting(AM_EQUIPMENT_RENTALS_EQUIPMENTID, 'equipmentid');
111 111
                 $GLOBALS['xoopsTpl']->assign('selectorequipmentid', $selectorequipmentid);
112
-                if(null !==($equipmentHandler->get($rentalsTempArray[$i]->getVar('equipmentid')))) {
112
+                if (null !== ($equipmentHandler->get($rentalsTempArray[$i]->getVar('equipmentid')))) {
113 113
                     $rentalsArray['equipmentid'] = $equipmentHandler->get($rentalsTempArray[$i]->getVar('equipmentid'))->getVar('name');
114 114
                 }
115 115
 
Please login to merge, or discard this patch.
include/onupdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             foreach ($configurator['templateFolders'] as $folder) {
96 96
                 $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
97 97
                 if (is_dir($templateFolder)) {
98
-                    $templateList = array_diff(scandir($templateFolder,SCANDIR_SORT_NONE), array('..', '.'));
98
+                    $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), array('..', '.'));
99 99
                     foreach ($templateList as $k => $v) {
100 100
                         $fileInfo = new SplFileInfo($templateFolder . $v);
101 101
                         if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') {
Please login to merge, or discard this patch.