Minor - format code

pull/3124/head
Julio Montoya 5 years ago
parent cc846ec666
commit 0c59750c7b
  1. 1
      .php_cs.dist
  2. 3
      ecs.yaml
  3. 3
      psalm.xml
  4. 2
      src/CourseBundle/Component/CourseCopy/CourseRestorer.php

@ -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" />
<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);

Loading…
Cancel
Save