improved code styles #158 (#172)

* use php-cs-fixer instead of phpcodesniffer
* updated scrutinizer config
* adjusted code yules to all files
* updated CONTRIBUTING guidelines
This commit is contained in:
Kevin Papst
2018-06-22 21:09:10 +02:00
committed by GitHub
parent 773d27bb0e
commit cd7cbeae88
142 changed files with 775 additions and 467 deletions

View File

@@ -23,9 +23,8 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
*/
class HelpController extends Controller
{
const README = 'README';
const DOCS_DIR = 'var/docs/';
public const README = 'README';
public const DOCS_DIR = 'var/docs/';
/**
* @var string
@@ -49,10 +48,10 @@ class HelpController extends Controller
* @param string $chapter
* @return \Symfony\Component\HttpFoundation\Response
*/
public function indexAction(?string $chapter)
public function indexAction(string $chapter)
{
$breadcrumb = [self::README];
if ($chapter !== self::README) {
if (self::README !== $chapter) {
$breadcrumb[] = $chapter;
}