Improve code style formatter + fix unused var in octopush
This commit is contained in:
parent
d9cc959bbd
commit
3976ef0a24
|
@ -201,11 +201,6 @@ class OctopushVirtualNumberAdapter implements AdapterInterface
|
|||
'sms_type' => self::SMS_TYPE_LOWCOST,
|
||||
];
|
||||
|
||||
if ($this->sender !== null)
|
||||
{
|
||||
$datas['sms_sender'] = $this->sender;
|
||||
}
|
||||
|
||||
$endpoint = $this->api_url . '/sms/json';
|
||||
|
||||
$curl = curl_init();
|
||||
|
|
|
@ -13,6 +13,10 @@ $finder = PhpCsFixer\Finder::create()
|
|||
->exclude('tests/Fixtures')
|
||||
->in(__DIR__)
|
||||
->append([__DIR__.'/php-cs-fixer'])
|
||||
->in(__DIR__ . '/../../controllers/')
|
||||
->in(__DIR__ . '/../../models/')
|
||||
->in(__DIR__ . '/../../daemons/')
|
||||
->in(__DIR__ . '/../../adapters/')
|
||||
;
|
||||
|
||||
$config = PhpCsFixer\Config::create()
|
||||
|
|
|
@ -13,17 +13,11 @@
|
|||
}
|
||||
|
||||
$lint_commands = [
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../models/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../daemons/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../adapters/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix',
|
||||
];
|
||||
|
||||
$fix_commands = [
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../models/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../daemons/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../adapters/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix',
|
||||
];
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
parameters:
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
|
||||
paths:
|
||||
- %rootDir%/../../controllers/
|
||||
- %rootDir%/../../models/
|
||||
- %rootDir%/../../adapters/
|
||||
- %rootDir%/../../daemons/
|
||||
|
||||
ignoreErrors:
|
||||
- '#Constant RASPISMS_[a-zA-Z0-9\\_]+ not found.#'
|
||||
|
|
|
@ -11,10 +11,7 @@
|
|||
}
|
||||
|
||||
$analyse_commands = [
|
||||
'php ' . __DIR__ . '/phpstan.phar analyse --configuration="'. __DIR__ .'/config.neon" --autoload-file=' . __DIR__ . '/../../descartes/load.php ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/phpstan.phar analyse --configuration="'. __DIR__ .'/config.neon" --autoload-file=' . __DIR__ . '/../../descartes/load.php ' . __DIR__ . '/../../models/',
|
||||
'php ' . __DIR__ . '/phpstan.phar analyse --configuration="'. __DIR__ .'/config.neon" --autoload-file=' . __DIR__ . '/../../descartes/load.php ' . __DIR__ . '/../../adapters/',
|
||||
'php ' . __DIR__ . '/phpstan.phar analyse --configuration="'. __DIR__ .'/config.neon" --autoload-file=' . __DIR__ . '/../../descartes/load.php ' . __DIR__ . '/../../daemons/',
|
||||
'php ' . __DIR__ . '/phpstan.phar analyse --configuration="'. __DIR__ .'/config.neon" --autoload-file=' . __DIR__ . '/../../descartes/load.php ',
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue