Skip to content

Commit 0c59750

Browse files
committed
Minor - format code
1 parent cc846ec commit 0c59750

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.php_cs.dist

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ $rules = [
1616
'multiline_comment_opening_closing' => true,
1717
'phpdoc_to_comment' => false,
1818
'phpdoc_annotation_without_dot' => false,
19+
'increment_style' => ['style' => 'post'],
1920
'no_useless_else' => false,
2021
'single_quote' => false,
2122
'no_useless_return' => true,

ecs.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ services:
55
PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer:
66
remove_inheritdoc: true
77

8+
PhpCsFixer\Fixer\Operator\IncrementStyleFixer:
9+
style: 'post'
10+
811
parameters:
912
sets:
1013
- 'clean-code'

psalm.xml

-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@
3636
</projectFiles>
3737

3838
<issueHandlers>
39-
40-
4139
<InvalidClass errorLevel="info" />
4240

43-
4441
<LessSpecificReturnType errorLevel="info" />
4542

4643
<LessSpecificReturnType errorLevel="info" />

src/CourseBundle/Component/CourseCopy/CourseRestorer.php

-2
Original file line numberDiff line numberDiff line change
@@ -1265,8 +1265,6 @@ public function restore_topic($thread_id, $forum_id, $sessionId = 0)
12651265
);
12661266

12671267
$this->course->resources[RESOURCE_FORUMTOPIC][$thread_id]->destination_id = $new_id;
1268-
$topic_replies = -1;
1269-
12701268
foreach ($this->course->resources[RESOURCE_FORUMPOST] as $post_id => $post) {
12711269
if ($post->obj->thread_id == $thread_id) {
12721270
$this->restore_post($post_id, $new_id, $forum_id, $sessionId);

0 commit comments

Comments
 (0)