Please note that this service is under alpha statement, we are actively working on it. It may be unstable and might completely change without warning. Help us by reporting!

sigmapix/SigmapixSonataImportBundle

Analysis #817 FAILED

Diff

Download raw diff

diff --git a/Admin/ImportableAdminTrait.php b/Admin/ImportableAdminTrait.php
index af3e0186e0f938981536e0c509d2685ca30d38d7..3f3e2424deba32972d1428bb87f894c74e5678c2 100644
--- a/Admin/ImportableAdminTrait.php
+++ b/Admin/ImportableAdminTrait.php
@@ -23,26 +23,15 @@ use Symfony\Component\HttpFoundation\Response;
 trait ImportableAdminTrait
 {
     /**
-     * @var Form
-     */
-    private $importForm;
-
-    /**
      * Options to set to the form (ie, validation_groups).
      *
      * @var array
      */
-    protected $formOptions = array();
-
+    protected $formOptions = [];
     /**
-     * @param FormMapper $formMapper
-     */
-    abstract protected function configureImportFields(FormMapper $formMapper);
-
-    /**
-     * Attach the inline validator to the model metadata, this must be done once per admin.
+     * @var Form
      */
-    abstract protected function attachInlineValidator();
+    private $importForm;
 
     /**
      * {@inheritdoc}
@@ -187,6 +176,16 @@ trait ImportableAdminTrait
     {
     }
 
+    /**
+     * @param FormMapper $formMapper
+     */
+    abstract protected function configureImportFields(FormMapper $formMapper);
+
+    /**
+     * Attach the inline validator to the model metadata, this must be done once per admin.
+     */
+    abstract protected function attachInlineValidator();
+
     protected function configureRoutes(RouteCollection $collection)
     {
         /* @var AbstractAdmin $this */