Skip to content

Commit ce202fb

Browse files
authored
Merge pull request #297 from php-school/context
Merge rewrite
2 parents b206fce + 7257a37 commit ce202fb

File tree

205 files changed

+4147
-2598
lines changed

Some content is hidden

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

205 files changed

+4147
-2598
lines changed

.github/workflows/php-workshop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php }}
24-
tools: composer:v2
24+
tools: php-cs-fixer,composer:v2
2525
coverage: none
2626

2727
- name: Install Dependencies

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
program.php
44
.phpunit.result.cache
55
/build
6+
/vendor-bin/**/vendor/
7+
.php-cs-fixer.cache

.php-cs-fixer.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__)
5+
->exclude('test/res')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@PER-CS2.0' => true,
11+
'no_unused_imports' => true,
12+
])
13+
->setFinder($finder);

0 commit comments

Comments
 (0)