Following structure is expected for your TYPO3 project (adapt script if it differs):
.
├── composer.json
├── composer.lock
├── patches
│ ├── ...
│ └── ...
└── scripts
Following structure is expected for your TYPO3 project (adapt script if it differs):
.
├── composer.json
├── composer.lock
├── patches
│ ├── ...
│ └── ...
└── scripts
<?php | |
declare(strict_types=1); | |
/* | |
* This file is part of the Extension "plain_faq" for TYPO3 CMS. | |
* | |
* For the full copyright and license information, please read the | |
* LICENSE.txt file that was distributed with this source code. | |
*/ |
#! /bin/bash | |
# This software is MIT licensed. | |
# Available from https://gist.github.com/marble/b02c753abf19368e0f34678601c157f3/edit | |
# Designed for a Linux like system that has the 'whiptail' command installed. | |
# Copyright <2020> <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to |
# Update this by running | |
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
name: Coding Standards |
cache: | |
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" | |
paths: | |
- .cache/ | |
.dedicated-runner: | |
tags: | |
- docker | |
- linux |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |
config.contentObjectExceptionHandler = 0 | |
# Default PAGE object: | |
page = PAGE | |
page.10 = FLUIDTEMPLATE | |
page.10.file = fileadmin/template.html | |
page.10 { | |
dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor | |
dataProcessing.10 { | |
table = pages | |
pidInList = 1 |
cache: | |
paths: | |
- /cache/composer | |
stages: | |
- composer | |
- deploy | |
build: | |
stage: composer |