Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 #708

Draft
wants to merge 311 commits into
base: master
Choose a base branch
from
Draft

2.0.0 #708

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
164a39f
Implement Emphasis
aidantwoods Jan 20, 2019
79a38a1
Implement EscapeSequence
aidantwoods Jan 20, 2019
dad0088
Implement Link
aidantwoods Jan 20, 2019
5e8905c
Implement Image
aidantwoods Jan 20, 2019
778eacd
Implement Markup
aidantwoods Jan 20, 2019
f256352
Implement SpecialCharacter
aidantwoods Jan 20, 2019
db1d0a4
Implement Strikethrough
aidantwoods Jan 20, 2019
53bb9a6
Implement Url
aidantwoods Jan 20, 2019
a286033
Implement UrlTag
aidantwoods Jan 20, 2019
114eb0b
Add required imports
aidantwoods Jan 20, 2019
dbdbda5
Make Parsedown non-extendable and remove comment header
aidantwoods Jan 20, 2019
36cfb21
Remove no longer needed parts of core class
aidantwoods Jan 20, 2019
e6e24a8
Rewrite to use new internals
aidantwoods Jan 20, 2019
799ced6
Use Parsedown directly
aidantwoods Jan 20, 2019
e2c9b2f
Remap text-level elements retreival
aidantwoods Jan 20, 2019
04816a9
Adjust tests for new API
aidantwoods Jan 20, 2019
f58845c
Bump Psalm version for new static analysis features
aidantwoods Jan 20, 2019
f420fad
Remove ignore statement for core class :)
aidantwoods Jan 20, 2019
b360882
Calling static functions on metatype class string is >=PHP7 only
aidantwoods Jan 20, 2019
7188f49
7.3 was released, so make failure blocking
aidantwoods Jan 20, 2019
ca00887
Use latest PHP on non-unit test build staged
aidantwoods Jan 20, 2019
f8003dc
Remove debug lines
aidantwoods Jan 20, 2019
a9aa7e7
Test on PHP 5.5 and 5.6
aidantwoods Jan 20, 2019
351a68a
Remove some return type hints that I missed
aidantwoods Jan 20, 2019
e4ed4da
More keyword related fixes for pre PHP 7
aidantwoods Jan 20, 2019
6f1bc7d
Fix pre PHP7 closure-as-property closure syntax
aidantwoods Jan 20, 2019
3789544
Fix PHP 5.6 bug
aidantwoods Jan 20, 2019
2757274
Constant arrays to static vars for PHP 5.5
aidantwoods Jan 20, 2019
6f5780a
Improve Link API
aidantwoods Jan 21, 2019
dac6b01
Remove meaningless interrupt check
aidantwoods Jan 21, 2019
6add0ea
Remove useless variables
aidantwoods Jan 21, 2019
3666000
This isn't used and is derivable from the indent
aidantwoods Jan 21, 2019
7f526c0
Indent offset is encompassed in Lines object
aidantwoods Jan 21, 2019
2cfd05a
Test for dead code in travis
aidantwoods Jan 21, 2019
bb8a16a
Remove useless line method
aidantwoods Jan 21, 2019
c9388cb
Make use of line name instead of lineElements
aidantwoods Jan 21, 2019
083ad58
State management
aidantwoods Jan 21, 2019
576a2c4
Generalise line parsing to return Inlines before applying state
aidantwoods Jan 22, 2019
82c9816
Require Inlines to provide a best plaintext rendering
aidantwoods Jan 22, 2019
96d8a1f
Add dead code test to composer test script
aidantwoods Jan 22, 2019
4e9a011
Thematic breaks can't have an indent of more than 3
aidantwoods Jan 22, 2019
fc37ad1
Tabs shouldn't break thematic breaks
aidantwoods Jan 22, 2019
74bba0b
rtrim non hard breaking lines
aidantwoods Jan 22, 2019
51c3d9d
Make it clearer this is one backslash character
aidantwoods Jan 22, 2019
bb424e6
Improve indent handling by lists
aidantwoods Jan 22, 2019
3d41f27
Better name for testing safe mode and strict mode state
aidantwoods Jan 22, 2019
81a2050
Headers can't start with more than three spaces
aidantwoods Jan 22, 2019
67231cb
Tabs are allowed after header delimiter
aidantwoods Jan 22, 2019
9d97b8e
We should be using strict mode in commonmark benchmark
aidantwoods Jan 22, 2019
b8cdc6e
Remove closing # sequence from header
aidantwoods Jan 22, 2019
00821bd
Don't remove right #'s too early (before dealing with whitesapce)
aidantwoods Jan 22, 2019
14b3761
Produce Blocks before converting to StateRenderables
aidantwoods Jan 24, 2019
714ae50
Text variable isn't very useful inside the loop
aidantwoods Jan 24, 2019
1fd2e14
Add hard and soft breaks
aidantwoods Jan 25, 2019
5a50930
Allow inlines to backtrack into characters that were suspected as
aidantwoods Jan 25, 2019
eb90905
Default value is intrinsic to a configurable, we can just always
aidantwoods Jan 25, 2019
fce4633
Inlines and Blocks as Configurables
aidantwoods Jan 25, 2019
2618509
Now the class is a bit shorter we can remove these makeshift dividers
aidantwoods Jan 25, 2019
5e7fb61
More keyword fixes for pre-PHP7
aidantwoods Jan 25, 2019
57632f3
More meaningful method name
aidantwoods Jan 25, 2019
9f9ef78
This should be slightly faster
aidantwoods Jan 25, 2019
8fe93f3
Add easy way to remove Components from InlineTyes and BlockTypes
aidantwoods Jan 25, 2019
fce09a7
Put reused code in a trait so boolean configurables are easy to make
aidantwoods Jan 25, 2019
b89bd0e
Add breaks configurable
aidantwoods Jan 25, 2019
11da347
We don't need to pass a Parsedown instance down
aidantwoods Jan 25, 2019
19e21f2
Remove test extensions
aidantwoods Jan 25, 2019
d733c26
Cleanup logical operators
aidantwoods Jan 26, 2019
ebde35c
Add some style cleanup rules already followed
aidantwoods Jan 26, 2019
b728f25
Ensure Url parsing is removed all the way down (not just edge)
aidantwoods Jan 26, 2019
d6f526d
Return state after block parse instead of mutating the instance copy
aidantwoods Jan 26, 2019
bc3c154
Don't special case invisible
aidantwoods Jan 26, 2019
48c0c34
Caching for initial configurable values removes need to seed state
aidantwoods Jan 26, 2019
aab56cf
Fix strange formatting
aidantwoods Jan 26, 2019
f0da746
Remove reminder comment
aidantwoods Jan 26, 2019
cbe7b25
No markup can be achieved by removing the respective parsing Components
aidantwoods Jan 26, 2019
4563ee5
Don't assume marker type is correct
aidantwoods Jan 27, 2019
734b4fc
Test Parsedown against cached expect-to-pass CommonMark spec examples
PhrozenByte Oct 12, 2016
4c0734d
Sync phpunit data set and CommonMark spec example numbers
PhrozenByte Oct 13, 2016
0514997
Add initial test/commonmark/ folder
PhrozenByte Oct 13, 2016
50e135c
Update expect-to-pass CommonMark spec examples for f4e0234
PhrozenByte Oct 13, 2016
62615f4
Allow empty code spans
aidantwoods Jan 27, 2019
d6c97ee
Make escaping slightly less aggressive
aidantwoods Jan 27, 2019
2e0ad27
CommonMark escapes double-quotes
aidantwoods Jan 27, 2019
eab734b
Match CommonMark's rendering a bit better
aidantwoods Jan 27, 2019
7fd6e0b
Backslash escape like CommonMark
aidantwoods Jan 27, 2019
82d20d8
Markup like CommonMark
aidantwoods Jan 27, 2019
745db11
Since SafeMode concerns output, spacing should still be parsed like m…
aidantwoods Jan 27, 2019
7b72eb6
As best I can tell, these were passed accidently before
aidantwoods Jan 27, 2019
4fa89c1
Fix regex compilation
aidantwoods Jan 27, 2019
5ada761
Cache new passing tests
aidantwoods Jan 27, 2019
0f55cd5
Permit empty links
aidantwoods Jan 27, 2019
3dd1326
Trim paragraph contents
aidantwoods Jan 27, 2019
30763a0
HTML tags should have a name
aidantwoods Jan 27, 2019
49dd8b1
Make sure closing sequence is removed correctly
aidantwoods Jan 27, 2019
f47ba7a
Track whitespace left on blank lines to match CommonMark
aidantwoods Jan 28, 2019
42d21a2
Remove cached items no that longer exist in spec.txt
aidantwoods Jan 28, 2019
a2bca78
Fix whitespace errors
aidantwoods Jan 28, 2019
f2f7433
Switch to CommonMarkStrict tests
aidantwoods Jan 28, 2019
fe1355e
Test strict and weak in Travis
aidantwoods Jan 28, 2019
dbc0efe
Require integer-keyed lists so that array_merge result is predictable
aidantwoods Jan 30, 2019
4dee1e9
Add convenience instance-based initialisers
aidantwoods Jan 30, 2019
c49d400
Add StateBearer which can carry state
aidantwoods Jan 30, 2019
cb211a8
PHP < 7 compat
aidantwoods Jan 30, 2019
63a97a9
Remove leftover hackyness
aidantwoods Jan 31, 2019
117912c
Substr over indexing string
aidantwoods Feb 2, 2019
54f2c4e
Fix recovered spaces calculation
aidantwoods Feb 2, 2019
efe324c
Add mutation testing
aidantwoods Feb 2, 2019
d29f900
Nightly doesn't have xdebug
aidantwoods Feb 2, 2019
811991b
Run mutation tests after unit tests on supported platforms
aidantwoods Feb 2, 2019
c310625
Length not necessary
aidantwoods Feb 2, 2019
14f8ff5
Test continuation of indented code blocks
aidantwoods Feb 2, 2019
08c40af
Test against HTML block endings
aidantwoods Feb 3, 2019
d9792bb
Ensure markers are checked when beginning blocks
aidantwoods Feb 3, 2019
660c2e4
Paragraph would end itself and new one must start for header row to
aidantwoods Feb 3, 2019
f95c3bb
--show-mutations over cat infection.log
aidantwoods Feb 3, 2019
9bf91d7
Cache spec locally for 5 minutes
aidantwoods Feb 3, 2019
93650fb
PHP 5.5 compat
aidantwoods Feb 3, 2019
2efae74
Simplify expression
aidantwoods Feb 3, 2019
0626a83
Test trimming doesn't occur when asymmetric
aidantwoods Feb 3, 2019
c297310
Fix whitespace trimming for soft and hard breaks
aidantwoods Feb 3, 2019
3c6578d
Remove deleted stage
aidantwoods Feb 3, 2019
6ac6b7f
Test blockquote whitespace handling
aidantwoods Feb 3, 2019
a681cf6
Acquisition capable blocks as an interface
aidantwoods Feb 10, 2019
41fb6b0
Move url sanitisation out of Element class
aidantwoods Feb 10, 2019
36fac49
Remove redundant checks
aidantwoods Feb 10, 2019
df703dc
Missed one
aidantwoods Feb 10, 2019
8fd3c77
Tighten requirements
aidantwoods Feb 10, 2019
2b79d59
Require State to build and advance blocks
aidantwoods Feb 10, 2019
369aea5
Collect State from continuable state updating block on advance
aidantwoods Feb 10, 2019
3bb24c2
Assert marker is correct for hard and soft breaks
aidantwoods Feb 10, 2019
5ecfc42
Early exit if found
aidantwoods Feb 10, 2019
cef5b16
Update excludes
aidantwoods Feb 10, 2019
30613b2
Ensure $startPosition is positive
aidantwoods Feb 10, 2019
dbe37bc
Type check tests
aidantwoods Feb 10, 2019
b90efc6
Ensure marker is properly contained in the Inline
aidantwoods Feb 10, 2019
147a87a
These are self-explainitory
aidantwoods Feb 10, 2019
289b641
Remove inaccurate comment
aidantwoods Feb 10, 2019
015e476
Remove unused import
aidantwoods Feb 10, 2019
fc23ca5
Remove more redundant checks
aidantwoods Feb 10, 2019
65450f4
Simplify
aidantwoods Feb 10, 2019
658129d
Suppress instead of writing super verbose tests
aidantwoods Feb 11, 2019
c079294
Remove unused methods
aidantwoods Feb 11, 2019
d8d483b
Add some component level tests
aidantwoods Feb 11, 2019
69f6754
These classes of mutations would be caught be static analysis
aidantwoods Feb 11, 2019
4fb6ac3
Improve tests
aidantwoods Feb 11, 2019
93e6805
Further improve tests
aidantwoods Feb 11, 2019
a396fcc
No contexts implies everything being appended is a blank line
aidantwoods Feb 11, 2019
747abe7
Test indented code boundary when list advances
aidantwoods Feb 15, 2019
f83ee87
Make this pattern a bit more reusable
aidantwoods Feb 15, 2019
3c0b528
Constructor shouldn't be part of public API
aidantwoods Feb 16, 2019
3ccd64a
Expand public API of Components
aidantwoods Feb 16, 2019
4a215f3
Trim in renderer
aidantwoods Feb 16, 2019
4501a09
Remove copy-pasto
aidantwoods Feb 17, 2019
4adbd0b
Backtracking capable inlines better expressed by interface
aidantwoods Feb 22, 2019
7f6127f
Ensure we cover all mutations in tests
aidantwoods Feb 22, 2019
33522f0
Normalise link reference lookups
aidantwoods Feb 22, 2019
c86757b
Use caret operator for PHP version
aidantwoods Mar 10, 2019
de1e0b9
Update README to match Travis breadth
aidantwoods Mar 14, 2019
99525fd
Match GFM spec for extended autolinks
aidantwoods Mar 26, 2019
d32f5de
According to GFM spec these shouldn't infact be recognised
aidantwoods Mar 26, 2019
9b9c9d8
Update CommonMark expect to pass
aidantwoods Mar 26, 2019
710a6ad
Remove format error
aidantwoods Apr 6, 2019
3f74fe8
Port fix for https://github.com/erusev/parsedown/issues/699 into new
aidantwoods Apr 6, 2019
35d24d0
PHP < 7 patch
aidantwoods Apr 6, 2019
b9b75db
Update commonmark cache
aidantwoods Apr 6, 2019
9eb6a02
Limit recursion depth by configurable
aidantwoods Apr 7, 2019
efcccb3
Update commonmark cache
aidantwoods Apr 10, 2019
7b1389b
More specific return type
aidantwoods Jun 16, 2019
298b319
Fix malformed return type
aidantwoods Jun 16, 2019
5a12d42
Allow unused class in tests
aidantwoods Jun 16, 2019
91b8bda
Update test cache
aidantwoods Jun 16, 2019
614c76b
Drop pre 7.1
aidantwoods Jul 24, 2019
f4fb5bd
Add type 7 HTML block tests
aidantwoods Jul 24, 2019
34902bc
Account for type 7 HTML blocks
aidantwoods Jul 24, 2019
b9bc0b7
Update expect-to-pass cache
aidantwoods Jul 24, 2019
ea55a9f
Integer keys aren't necessary
aidantwoods Jul 24, 2019
37f306c
Utilise constant arrays over static vars
aidantwoods Jul 24, 2019
211a7eb
Tables always acquire previous
aidantwoods Jul 25, 2019
f51dd88
Drop use of undefined reference
aidantwoods Jul 25, 2019
54f7719
Force return type to T
aidantwoods Jul 25, 2019
18ee4ff
Bump min psalm version
aidantwoods Jul 25, 2019
f75e7bd
Prefer master until next release
aidantwoods Jul 31, 2019
bde621e
Drop master from psalm requirement
aidantwoods Sep 9, 2019
5db3687
$matches is guarenteed to contain data for the full pattern
aidantwoods Sep 9, 2019
bfdd0f2
More specific annotation
aidantwoods Sep 9, 2019
0a1e4bd
Formatting fix
aidantwoods Sep 9, 2019
01319b7
Add 7.4 snapshot
aidantwoods Sep 9, 2019
0a64080
Only run units on 7.4snapshot
aidantwoods Sep 9, 2019
13932bc
Simplify match logic
aidantwoods Jan 19, 2020
a2ea704
Use list type over int array
aidantwoods Jan 19, 2020
a72455c
Use ->toHtml over ->text
aidantwoods Jan 19, 2020
8d09320
Compute on read optimisation for previousEmptyLines
aidantwoods Jan 19, 2020
39b8b04
Clarify sequential lines being tracked are empty
aidantwoods Jan 19, 2020
525b723
Expensive operation last
aidantwoods Jan 19, 2020
7610eac
Fix uppercase typo
aidantwoods Jan 19, 2020
a6c17f4
previousEmptyLines -> precedingEmptyLines
aidantwoods Jan 19, 2020
2235e36
Use verb imperative to indicate method is non-mutating
aidantwoods Jan 19, 2020
bded7a6
PHP 7.4 is now released
aidantwoods Jan 19, 2020
836c028
Add flag to get type-coverage
aidantwoods Jan 26, 2020
dbb929f
Commit lock file so static analysis results are stable
aidantwoods May 4, 2020
bc018e1
Remove 'matrix' key
aidantwoods May 4, 2020
8e8d1da
Resolve dependencies when running unit tests
aidantwoods May 4, 2020
0ef406e
Add MutableConfigurable
aidantwoods May 5, 2020
c835535
Implement DefinitionBook as MutableConfigurable
aidantwoods May 5, 2020
74df602
Merge pull request #768 from aidantwoods/feature/mutable-configurable
aidantwoods May 10, 2020
e332b47
Add HeaderSlug configurable
aidantwoods May 4, 2020
d8bf075
Strip superscripts and divisions from eventual slug
aidantwoods May 4, 2020
4e99e29
Trim leading and trailing hyphens from slug
aidantwoods May 5, 2020
8764512
Add SlugRegister so IDs are not duplicated
aidantwoods May 5, 2020
0c5e8c1
Merge pull request #767 from aidantwoods/enhancement/header-slug
aidantwoods May 10, 2020
9f6112e
Ignore phpunit result cache
aidantwoods Oct 11, 2021
98aab22
Update dependencies
aidantwoods Oct 11, 2021
ca16d75
Fix psalm errors
aidantwoods Oct 11, 2021
cc5614b
Test 8.0 in travis
aidantwoods Oct 11, 2021
7d1b9ca
Better autolinks
aidantwoods Oct 11, 2021
3472b9b
GitHub Actions
aidantwoods Oct 11, 2021
7f11869
Remove infection for unit tests
aidantwoods Oct 11, 2021
f396d49
Use static analysis plugin for infection
aidantwoods Oct 11, 2021
de06199
Support old phpunit, remove lock file
aidantwoods Oct 11, 2021
58bb815
Dev flag
aidantwoods Oct 11, 2021
9d5af12
Run both commonmark tests
aidantwoods Oct 11, 2021
7c2681b
Remove travis
aidantwoods Oct 11, 2021
c773305
Add RenderStack
aidantwoods Oct 11, 2021
0f27f2e
Add initState to tests
aidantwoods Oct 12, 2021
efaf20d
Minor refactor to use type hints
aidantwoods Oct 12, 2021
2ea4bec
Return statebearer instead of state
aidantwoods Oct 12, 2021
a48c451
Restrict autolinks to https
aidantwoods Oct 12, 2021
8fc49f6
Add TransformableRenderable capability
aidantwoods Oct 12, 2021
71d9263
Pass State to render stack closure
aidantwoods Oct 13, 2021
a9f4154
adding method for Container
aidantwoods Oct 13, 2021
e9dec33
Replacing all function to TransformableRenderable
aidantwoods Oct 13, 2021
05a47e7
Complete docblock
aidantwoods Oct 13, 2021
7b0a9cd
Transformations must return transformable renderables
aidantwoods Oct 13, 2021
b73fe2e
Apply correct state
aidantwoods Oct 13, 2021
8ce88c1
Off by 1
aidantwoods Oct 13, 2021
4553515
Relax mutation tolerance
aidantwoods Oct 13, 2021
4af22ec
Allow substitution of blocks and inlines
aidantwoods Oct 15, 2021
421a239
StateBearer must be constructable from State
aidantwoods Oct 15, 2021
638079a
Slightly nicer method name
aidantwoods Oct 15, 2021
9749ef7
Slightly nicer to allow construction from StateBearer
aidantwoods Oct 15, 2021
95c9cce
Update php-cs-fixer
aidantwoods Oct 15, 2021
f77cb47
Remove unnecessary cast
aidantwoods Dec 8, 2021
79effc4
Ignore invalid docblock in tests
aidantwoods Dec 8, 2021
6fdcfaa
Add initial documentation
aidantwoods Nov 28, 2021
bf6cfe8
Show importing of Parsedown and State in example
aidantwoods Dec 8, 2021
6be4366
Add additional explaination for the `State` object
aidantwoods May 21, 2022
5cc8436
Test on 8.1
aidantwoods May 21, 2022
7c7d581
Error level 1 instead of totallyTyped
aidantwoods May 21, 2022
b3f0ae4
Merge pull request #821 from erusev/documentation-v2.0
aidantwoods May 21, 2022
32278af
Fix title
aidantwoods May 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
98 changes: 98 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Parsedown
on: [push, pull_request]
jobs:
units:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0, 7.4, 7.3, 7.2, 7.1]

runs-on: ${{ matrix.os }}
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2

- uses: actions/checkout@v2
- name: Run Tests
run: |
composer remove infection/infection --no-update --dev
composer remove roave/infection-static-analysis-plugin --no-update --dev
composer update --prefer-dist --no-interaction --no-progress
composer test-units

mutations:
name: Mutation Tests
strategy:
matrix:
os: [ubuntu-latest]
php: [8.1]

runs-on: ${{ matrix.os }}
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2

- uses: actions/checkout@v2
- name: Run Tests
run: |
composer update --prefer-dist --no-interaction --no-progress
vendor/bin/roave-infection-static-analysis-plugin --show-mutations --threads=4 --min-msi=80 --min-covered-msi=80

static-analysis:
name: Code Format and Static Analysis
strategy:
matrix:
os: [ubuntu-latest]
php: [8.1]

runs-on: ${{ matrix.os }}
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2

- uses: actions/checkout@v2
- name: Run Tests
run: |
composer install --prefer-dist --no-interaction --no-progress
composer test-static -- --shepherd
composer test-formatting
composer test-dead-code

commonmark:
name: CommonMark
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest]
php: [8.1]

runs-on: ${{ matrix.os }}
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2

- uses: actions/checkout@v2
- name: Install
run: composer install --prefer-dist --no-interaction --no-progress

- name: CommonMark Strict
continue-on-error: true
run: composer test-commonmark

- name: CommonMark Weak
continue-on-error: true
run: composer test-commonmark-weak

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
composer.lock
vendor/
infection.log
tests/spec_cache.txt
.phpunit.result.cache
composer.lock
37 changes: 37 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__ . '/src/')
->in(__DIR__ . '/tests/')
;
$rules = [
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'braces' => [
'allow_single_line_closure' => true,
],
'logical_operators' => true,
'native_constant_invocation' => [
'fix_built_in' => true,
],
'native_function_invocation' => [
'include' => ['@all'],
],
'no_unused_imports' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'single_blank_line_before_namespace' => true,
'strict_comparison' => true,
'strict_param' => true,
'whitespace_after_comma_in_array' => true,
];
return (new Config)
->setRules($rules)
->setFinder($finder)
->setUsingCache(false)
->setRiskyAllowed(true)
;
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.