Skip to content

Commit

Permalink
Add php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmotyl committed Jun 9, 2021
1 parent f06effc commit 2ce96a0
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 128 deletions.
10 changes: 5 additions & 5 deletions magmi/plugins/base/datasources/csv/options_panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@
</div>

<div id="remotecsv"
<?php if ($this->getParam("CSV:importmode", "local")=="local") {
?>
<?php if ($this->getParam("CSV:importmode", "local") == "local") {
?>
style="display: none" <?php
}?>>
}?>>

<label for="CSV:remoteurl">Remote CSV url</label>
<input type="text" name="CSV:remoteurl" id="CSV:remoteurl" class="form-control" value="<?php echo $this->getParam("CSV:remoteurl", "")?>">

<label class="form-check-label">
<input type="checkbox" id="CSV:forcedl" class="form-check-input" name="CSV:forcedl" <?php if ($this->getParam("CSV:forcedl", false)==true) {?> checked="checked" <?php }?>>Force Download
<input type="checkbox" id="CSV:forcedl" class="form-check-input" name="CSV:forcedl" <?php if ($this->getParam("CSV:forcedl", false) == true) {?> checked="checked" <?php }?>>Force Download
</label>

<div id="remotecookie">
Expand All @@ -60,7 +60,7 @@

<label class="form-check-label">
<input type="checkbox" id="CSV:remoteauth" class="form-check-input" name="CSV:remoteauth"
<?php if ($this->getParam("CSV:remoteauth", false)==true) { ?> checked="checked" <?php }?>>Authentication needed
<?php if ($this->getParam("CSV:remoteauth", false) == true) { ?> checked="checked" <?php }?>>Authentication needed
</label>
<div id="remoteauth"
<?php if ($this->getParam("CSV:remoteauth", false) == false) {
Expand Down
1 change: 0 additions & 1 deletion magmi/web/ajax_pluginconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
require_once('../engines/$engine_name.php');
$enginst = new $engine_class();
$enginst->initialize();

} else {
$enginst = null;
}
Expand Down
16 changes: 8 additions & 8 deletions magmi/web/magmi_config_setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
?>

<?php $zipok=class_exists('ZipArchive'); ?>
<?php $zipok = class_exists('ZipArchive'); ?>
<div class="container mb-4">
<div class="row">
<div id="magmi-update" class="magmi-update col-12 mb-4">
Expand All @@ -42,15 +42,15 @@
<h3>Update Magmi Release</h3>
<input type="file" name="magmi_package"></input> <input type="submit" value="Upload Magmi release"></input>
<?php
if (isset($_SESSION['magmi_install'])) {
$type = $_SESSION['magmi_install'][0];
$msg = $_SESSION['magmi_install'][1]; ?>
if (isset($_SESSION['magmi_install'])) {
$type = $_SESSION['magmi_install'][0];
$msg = $_SESSION['magmi_install'][1]; ?>
<div class="mgupload_<?php echo $type?>">
<?php echo $msg; ?>
</div>
<?php
unset($_SESSION["magmi_install"]);
} ?>
} ?>
</div>
</form>
</div>
Expand Down Expand Up @@ -108,11 +108,11 @@
<div class="formline row">
<div class="col-12 col-md-6">
<label for="profile">Profile:</label>
<?php $profilelist=$conf->getProfileList(); ?>
<?php $profilelist = $conf->getProfileList(); ?>
<select name="profile" id="runprofile">
<option <?php if (null==$profile) { ?> selected="selected" <?php }?> value="default">Default</option>
<option <?php if (null == $profile) { ?> selected="selected" <?php }?> value="default">Default</option>
<?php foreach ($profilelist as $profilename) { ?>
<option <?php if ($profilename==$profile) { ?> selected="selected" <?php } ?> value="<?php echo $profilename; ?>"><?php echo $profilename; ?></option><?php } ?>
<option <?php if ($profilename == $profile) { ?> selected="selected" <?php } ?> value="<?php echo $profilename; ?>"><?php echo $profilename; ?></option><?php } ?>
</select>
</div>
<div class="col-12 col-md-6">
Expand Down
85 changes: 38 additions & 47 deletions magmi/web/magmi_plugin_info.php
Original file line number Diff line number Diff line change
@@ -1,66 +1,57 @@
<?php require_once("magmi_plugin_info.php"); ?>
<?php require_once("magmi_plugin_info.php"); ?>
<div class="plugininfohover">
<div class="plugindata">
<ul>
<?php

$sp = isset($pinfo["sponsorinfo"]);
foreach ($pinfo as $pik => $piv) {
?>

<li <?php if (isset($sp)) {
?> class='sponsored' <?php
}
?>><?php
if ($pik == "url") {
?>
<?php

$sp = isset($pinfo["sponsorinfo"]);
foreach ($pinfo as $pik => $piv) {
?>

<li <?php if (isset($sp)) {
?> class='sponsored' <?php
} ?>><?php
if ($pik == "url") {
?>
<span><?php echo $pik?></span>:<span><a
href="<?php echo $piv?>" target="_blank">Wiki entry</a></span>
<?php

} elseif ($pik == "sponsorinfo") {
?>
<?php
} elseif ($pik == "sponsorinfo") {
?>
<span class="sponsor">Sponsored By</span>: <span>
<?php if (isset($piv['url'])) {
?>
<?php if (isset($piv['url'])) {
?>
<a href="<?php echo $piv['url']?>" target="_blank">
<?php

}
echo $piv["name"];
if (isset($piv['url'])) {
?>
<?php
}
echo $piv["name"];
if (isset($piv['url'])) {
?>
</a>
<?php
}
?>
<?php
} ?>
</span>
<?php

} else {
?>
<?php
} else {
?>
<span><?php echo $pik?></span>:<span><?php echo $piv ?></span>
<?php

}

?>
<?php
} ?>
</li>
<?php

}
?>
<?php
}
?>
</ul>
<div class="minidoc">
<?php echo $info?>
<?php echo $info?>
</div>
</div>
<?php if (!$plrunnable[0]) {
?>
<?php if (!$plrunnable[0]) {
?>
<div class="error">
<pre><?php echo $plrunnable[1]?></pre>
</div>
<?php
}
?>
<?php
}
?>
</div>
Loading

0 comments on commit 2ce96a0

Please sign in to comment.