@ -16,6 +16,7 @@ $rules = [
'multiline_comment_opening_closing' => true,
'phpdoc_to_comment' => false,
'phpdoc_annotation_without_dot' => false,
'increment_style' => ['style' => 'post'],
'no_useless_else' => false,
'single_quote' => false,
'no_useless_return' => true,
@ -5,6 +5,9 @@ services:
PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer:
remove_inheritdoc: true
PhpCsFixer\Fixer\Operator\IncrementStyleFixer:
style: 'post'
parameters:
sets:
- 'clean-code'
@ -36,11 +36,8 @@
</projectFiles>
<issueHandlers>
<InvalidClass errorLevel="info" />
<LessSpecificReturnType errorLevel="info" />
@ -1265,8 +1265,6 @@ class CourseRestorer
);
$this->course->resources[RESOURCE_FORUMTOPIC][$thread_id]->destination_id = $new_id;
$topic_replies = -1;
foreach ($this->course->resources[RESOURCE_FORUMPOST] as $post_id => $post) {
if ($post->obj->thread_id == $thread_id) {
$this->restore_post($post_id, $new_id, $forum_id, $sessionId);