mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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,
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user