Skip to content

Commit 7555c9f

Browse files
authored
Merge branch 'master' into php-unit
2 parents f916cd9 + a05b7bf commit 7555c9f

File tree

132 files changed

+1654
-1801
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1654
-1801
lines changed

.github/workflows/php-cs-fixer.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [push, pull_request]
2+
name: Main
3+
jobs:
4+
php-cs-fixer:
5+
name: PHP-CS-Fixer
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: PHP-CS-Fixer
10+
uses: docker://oskarstark/php-cs-fixer-ga
11+
with:
12+
args: magmi --diff --dry-run

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/magmi/state/*
33
!/magmi/state/dummy.txt
44
/vendor
5+
.php-cs-fixer.cache
6+
.php_cs.cache

.php-cs-fixer.dist.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in('magmi');
5+
6+
7+
$config = new PhpCsFixer\Config();
8+
return $config->setRules([
9+
'@PSR12' => true,
10+
'binary_operator_spaces' => [
11+
'operators' => [
12+
'=' => 'single_space',
13+
'=>' => 'single_space',
14+
],
15+
],
16+
])
17+
->setFinder($finder);

magmi/.htaccess

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<FilesMatch "\.(ini)$">
2+
Order allow,deny
3+
Deny from all
4+
</FilesMatch>
5+
6+
<FilesMatch "^\.">
7+
Order allow,deny
8+
Deny from all
9+
</FilesMatch>
10+
11+
<FilesMatch "ReleaseNotes.txt">
12+
Order allow,deny
13+
Deny from all
14+
</FilesMatch>

magmi/cli/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deny from all

magmi/cli/magmi.cli.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ function getEngineInstance($options)
8787
// Getting engine
8888
$importer = getEngineInstance($options);
8989
if (isset($importer)) {
90-
$inifile=isset($options['config'])? $options['config']:null;
90+
$inifile = isset($options['config']) ? $options['config'] : null;
9191
if (isset($inifile)) {
9292
require_once('magmi_config.php');
93-
$conf=Magmi_Config::getInstance();
93+
$conf = Magmi_Config::getInstance();
9494
$conf->load($options['config']);
9595
}
9696
// if logger set, use it or use FileLogger by default

0 commit comments

Comments
 (0)