Commit be149fd
Added PHPStan to verify code samples (#2370)
* Applied CI review suggestion
* Added basic PHPStan config
* Added PHPStan for ActivityLog examples
* Added CI
* [TMP] Added invalid code on purpose
* Fixed auth issues
* Fixed CS job
* PHP CS Fixes
* Rerun
* Simplified namespaces
* [TMP] Use the old namespace
* Generated baseline
* Reduced baseline
* Finished reviewing baseline
* PHP CS Fixes
* Rerun
* Removed autoloading
* [TMP] Break
* Adjusted lines
* Apply suggestions from code review
Co-authored-by: Konrad Oboza <[email protected]>
* Added space separation
* Line offset fixes (#2430)
* checkout_api.md: Fix included lines after PHPStan fixes
* price_api.md: Fix included lines after PHPStan fixes
The confirmation output at the end of "Resolve prices" example was missing.
* create_custom_attribute_type.md: Fix highlighted line
Two lines removed in 086b885 but the highlighted line wasn't updated.
* search_api.md: Use `ContentTypeTermAggregation` lines
* oauth_client.md: Fix PROVIDER_PREFIX highlight
* segment_api.md: Fix highlighted line
One line added in aeee20a but the highlighted line wasn't updated.
(renaming from docs/api/public_php_api_managing_users.md to docs/users/segment_api.md in a9031bd)
* segment_api.md: Fix highlighted lines
One line added in aeee20a but the highlighted line wasn't updated.
(renaming from docs/api/public_php_api_managing_users.md to docs/users/segment_api.md in a9031bd)
* segment_api.md: Fix loadSegmentByIdentifier example intro
* search_api.md: Fix #sorting-results offset
* cart_api.md: Add missing EOF new line
* Added basic PHPStan config
* Added PHPStan for ActivityLog examples
* Added CI
* [TMP] Added invalid code on purpose
* Fixed auth issues
* Fixed CS job
* PHP CS Fixes
* Rerun
* Simplified namespaces
* [TMP] Use the old namespace
* Generated baseline
* Reduced baseline
* Finished reviewing baseline
* PHP CS Fixes
* Rerun
* Removed autoloading
* [TMP] Break
* Adjusted lines
* Applied CI review suggestion
* Apply suggestions from code review
Co-authored-by: Konrad Oboza <[email protected]>
* Added space separation
* Revert "[TMP] Break"
This reverts commit ac2cfbb.
* Bumped CS-Fixer version
* Fixed CS
* Removed redundant doc block from WebinarEventTitleFulltextFieldMapper
* Added readme mention
* Added empty line to cart_api
* Removed CS-fixer dependencies
* Improved cart_api
* Update code_samples/recent_activity/src/Command/MonitorRecentContentCreationCommand.php
Co-authored-by: Adrien Dupuis <[email protected]>
* PHP CS Fixes
* Removed TMP changes
---------
Co-authored-by: Konrad Oboza <[email protected]>
Co-authored-by: Adrien Dupuis <[email protected]>1 parent a516ddf commit be149fd
File tree
94 files changed
+868
-278
lines changed- .github/workflows
- code_samples
- api
- commerce/src
- Command
- Controller
- graphql/src/DependencyInjection/Compiler
- product_catalog/src/Command
- public_php_api/src
- Command
- Controller
- rest_api
- src/Rest
- InputParser
- Output
- Values
- back_office
- content_type/src/EventListener
- dashboard/article_tab/src/Tab/Dashboard/Everyone
- images/src
- limitation/src
- Security/Limitation
- notifications/src/Notification
- search/src
- EventSubscriber
- Search/Model/Suggestion
- data_migration/src/Migrations/Step
- field_types
- 2dpoint_ft
- src
- FieldType/Point2D
- Form/Type
- steps
- step_3
- step_6
- generic_ft/src/FieldType/HelloWorld
- Comparison
- front
- custom_query_type/src/QueryType
- embed_content/src/Controller
- layouts
- breadcrumbs/src/Controller
- shop/storefront/src/EventSubscriber
- page
- custom_block_validator/src/Validator
- custom_page_block/src/Event/Subscriber
- page_listener/src/Block/Listener
- recent_activity/src
- Command
- EventSubscriber
- MyFeature
- search/solr/src
- Query/Criterion/Solr
- Search/FieldMapper
- tutorials/page_tutorial/src/Event
- user_management/oauth_google/src/OAuth
- workflow/custom_workflow/src/EventListener
- docs
- commerce
- cart
- checkout
- content_management/content_api
- pim
- search
- templating/layout
- users
- tools/php-cs-fixer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
94 files changed
+868
-278
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
45 | 60 | | |
46 | 61 | | |
47 | 62 | | |
| |||
134 | 149 | | |
135 | 150 | | |
136 | 151 | | |
137 | | - | |
138 | | - | |
139 | 152 | | |
| 153 | + | |
140 | 154 | | |
141 | 155 | | |
142 | 156 | | |
| |||
148 | 162 | | |
149 | 163 | | |
150 | 164 | | |
| 165 | + | |
| 166 | + | |
151 | 167 | | |
152 | 168 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments