@@ -108,15 +108,15 @@ discard block |
||
| 108 | 108 | $rawGoo = array(16634, 16643, 16647, 16641, 16640, 16635, 16648, 16633, 16646, 16651, 16650, 16644, 16652, 16639, 16636, 16649, 16653, 16638, 16637, 16642); |
| 109 | 109 | foreach (@$xml->result->rowset->row as $structures) { |
| 110 | 110 | //Check silos |
| 111 | - if ((int)@$structures->attributes()->typeID === 14343) { |
|
| 111 | + if ((int) @$structures->attributes()->typeID === 14343) { |
|
| 112 | 112 | if (isset($structures->rowset->row)) { |
| 113 | 113 | foreach (@$structures->rowset->row as $silo) { |
| 114 | 114 | //Avoid reporting empty silos |
| 115 | - if ((int)@$silo->attributes()->quantity !== 0 && in_array(@$silo->attributes()->typeID, $rawGoo, false)) { |
|
| 115 | + if ((int) @$silo->attributes()->quantity !== 0 && in_array(@$silo->attributes()->typeID, $rawGoo, false)) { |
|
| 116 | 116 | $siloID = $structures->attributes()->itemID; |
| 117 | 117 | $lastAmount = getPermCache("silo{$siloID}Amount"); |
| 118 | 118 | $gooAmount = $silo->attributes()->quantity; |
| 119 | - $gooDifference = (int)$gooAmount - (int)$lastAmount; |
|
| 119 | + $gooDifference = (int) $gooAmount - (int) $lastAmount; |
|
| 120 | 120 | //Check if silo has been checked before |
| 121 | 121 | if (null === $lastAmount || $gooDifference < 0) { |
| 122 | 122 | setPermCache("silo{$siloID}Amount", $gooAmount); |
@@ -140,15 +140,15 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | - if ((int)@$structures->attributes()->typeID === 17982) { |
|
| 143 | + if ((int) @$structures->attributes()->typeID === 17982) { |
|
| 144 | 144 | if (isset($structures->rowset->row)) { |
| 145 | 145 | foreach (@$structures->rowset->row as $coupling) { |
| 146 | 146 | //Avoid reporting empty coupling arrays |
| 147 | - if ((int)@$coupling->attributes()->quantity !== 0 && in_array(@$coupling->attributes()->typeID, $rawGoo, false)) { |
|
| 147 | + if ((int) @$coupling->attributes()->quantity !== 0 && in_array(@$coupling->attributes()->typeID, $rawGoo, false)) { |
|
| 148 | 148 | $couplingID = $structures->attributes()->itemID; |
| 149 | 149 | $lastAmount = getPermCache("couplingArray{$couplingID}Amount"); |
| 150 | 150 | $gooAmount = $coupling->attributes()->quantity; |
| 151 | - $gooDifference = (int)$gooAmount - (int)$lastAmount; |
|
| 151 | + $gooDifference = (int) $gooAmount - (int) $lastAmount; |
|
| 152 | 152 | //Check if silo has been checked before |
| 153 | 153 | if (null === $lastAmount || $gooDifference < 0) { |
| 154 | 154 | setPermCache("couplingArray{$couplingID}Amount", $gooAmount); |