apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -68,7 +68,7 @@ class AccompanyingCourseDocumentType extends AbstractType
'error_bubbling' => true,
])
->add('date', ChillDateType::class)
//TODO : adapt to using AccompanyingCourseDocument categories. Currently there are none...
// TODO : adapt to using AccompanyingCourseDocument categories. Currently there are none...
->add('category', EntityType::class, [
'placeholder' => 'Choose a document category',
'class' => DocumentCategory::class,

View File

@@ -21,9 +21,6 @@ use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use function json_decode;
use function json_encode;
/**
* Form type which allow to join a document.
*/
@@ -90,7 +87,7 @@ class StoredObjectType extends AbstractType
return null;
}
return json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR);
return \json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR);
}
public function reverseTransformObject($object)
@@ -115,7 +112,7 @@ class StoredObjectType extends AbstractType
return null;
}
return json_encode($object, JSON_THROW_ON_ERROR);
return \json_encode($object, JSON_THROW_ON_ERROR);
}
public function transformObject($object = null)