Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tmotyl committed Oct 19, 2018
1 parent 718e618 commit f6b370b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion magmi/engines/magmi_productimportengine.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,10 @@ public function processDataSourceLine($item, $rstep, &$tstart, &$tdiff, &$lastdb
$res = array("ok" => 0, "last" => 0);
$canceled = false;
$this->_current_row++;
if ($rstep == 0) {$rstep = 1;}
if ($rstep == 0)
{
$rstep = 1;
}
if ($this->_current_row % $rstep == 0)
{
$this->reportStats($this->_current_row, $tstart, $tdiff, $lastdbtime, $lastrec);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public function buildSAPTable($sapdesc)
public function processItemBeforeId(&$item, $params = null)
{
// if item is not configurable, nothing to do
if ($item["type"] !== "configurable") {
if (isset($item["type"]) && $item["type"] !== "configurable") {
return true;
}
if ($this->_use_defaultopc ||
($item["options_container"] != "container1" && $item["options_container"] != "container2")) {
($item["options_container"] !== "container1" && $item["options_container"] !== "container2")) {
$item["options_container"] = "container2";
}
// reset option price info
Expand Down

0 comments on commit f6b370b

Please sign in to comment.