Skip to content

Commit

Permalink
updated codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Chernyi committed Mar 28, 2018
1 parent 87e69d7 commit 5791f66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ $finder = \PhpCsFixer\Finder::create()
return \PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(array(
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'no_short_echo_tag' => true,
'native_function_invocation' => true,
'no_extra_consecutive_blank_lines' => ['tokens' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block']],
'no_null_property_initialization' => true,
'no_short_echo_tag' => true,
'no_short_echo_tag' => true,
'no_superfluous_elseif' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function register(Container $container): void
]);

// Instantiate and add Slim specific extension
$basePath = rtrim(str_ireplace('index.php', '', $container['request']->getUri()->getBasePath()), '/');
$basePath = \rtrim(\str_ireplace('index.php', '', $container['request']->getUri()->getBasePath()), '/');
$view->addExtension(new \Slim\Views\TwigExtension($container['router'], $basePath));
$view->addExtension(new \Knlv\Slim\Views\TwigMessages($container['flash']));
$view->addExtension(new \Wtf\Html\CsrfExtension($container['csrf_middleware']));
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare(strict_types=1);
session_start();
\session_start();
// Enable Composer autoloader
/** @var \Composer\Autoload\ClassLoader $autoloader */
$autoloader = require __DIR__.'/../vendor/autoload.php';
Expand Down

0 comments on commit 5791f66

Please sign in to comment.