Completed
Push — master ( e876a4...a7100c )
by Michael
01:36
created
admin/rentals_vue.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 $xoopsTpl->assign('json_data', $json_data);
50 50
 
51 51
 $borrow_sql = 'SELECT r.quantity, e.name,  e.owner, c.first, c.last FROM ' . $xoopsDB->prefix('equipment_equipment') . ' AS e, ' . $xoopsDB->prefix('equipment_customer') . ' AS c, '
52
-              . $xoopsDB->prefix('equipment_rentals') . ' AS r WHERE e.id = r.equipmentid AND c.id = r.customerid';
52
+                . $xoopsDB->prefix('equipment_rentals') . ' AS r WHERE e.id = r.equipmentid AND c.id = r.customerid';
53 53
 
54 54
 $query1 = $xoopsDB->query($borrow_sql);
55 55
 
Please login to merge, or discard this 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/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 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -223,10 +223,10 @@
 block discarded – undo
223 223
             }
224 224
         } else {
225 225
             xoops_confirm(array(
226
-                              'ok' => 1,
227
-                              'id' => Request::getString('id', ''),
228
-                              'op' => 'delete'
229
-                          ), Request::getCmd('REQUEST_URI', '', 'SERVER'), sprintf(AM_EQUIPMENT_FORMSUREDEL, $rentalsObject->getVar('customerid')));
226
+                                'ok' => 1,
227
+                                'id' => Request::getString('id', ''),
228
+                                'op' => 'delete'
229
+                            ), Request::getCmd('REQUEST_URI', '', 'SERVER'), sprintf(AM_EQUIPMENT_FORMSUREDEL, $rentalsObject->getVar('customerid')));
230 230
         }
231 231
         break;
232 232
 
Please login to merge, or discard this 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/search.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $sql .= ')';
49 49
     }
50 50
 
51
-    $sql    .= ' ORDER BY id DESC';
51
+    $sql .= ' ORDER BY id DESC';
52 52
     $result = $GLOBALS['xoopsDB']->query($sql, $limit, $offset);
53 53
     $ret    = array();
54 54
     $i      = 0;
Please login to merge, or discard this patch.
include/notification.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $module        = $moduleHandler->getByDirname('equipment');
42 42
         /** @var XoopsConfigHandler $configHandler */
43 43
         $configHandler = xoops_getHandler('config');
44
-        $config        =& $configHandler->getConfigsByCat(0, $module->getVar('mid'));
44
+        $config        = & $configHandler->getConfigsByCat(0, $module->getVar('mid'));
45 45
     } else {
46 46
         $module = $GLOBALS['xoopsModule'];
47 47
         $config = $GLOBALS['xoopsModuleConfig'];
Please login to merge, or discard this patch.
include/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 // module information
48 48
 
49
-$copyright  = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>  
49
+$copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>  
50 50
                       <img src='" . constant($capsDirName . '_AUTHOR_LOGOIMG') . "' alt='XOOPS Project' /></a>";
51 51
 
52 52
 //Configurator
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -273,8 +273,8 @@
 block discarded – undo
273 273
 );
274 274
 
275 275
 // -------------- Get Admin groups --------------
276
-$criteria = new CriteriaCompo ();
277
-$criteria->add(new Criteria ('group_type', 'Admin'));
276
+$criteria = new CriteriaCompo();
277
+$criteria->add(new Criteria('group_type', 'Admin'));
278 278
 /** @var XoopsMemberHandler $memberHandler */
279 279
 $memberHandler    = xoops_getHandler('member');
280 280
 $adminXoopsGroups = $memberHandler->getGroupList($criteria);
Please login to merge, or discard this patch.