@@ -39,7 +39,7 @@  | 
                                                    ||
| 39 | 39 | 'allow_delete' => true,  | 
                                                        
| 40 | 40 | 'by_reference' => false,  | 
                                                        
| 41 | 41 | 'label' => 'lakion_sylius_cms.form.static_content.routes',  | 
                                                        
| 42 | - ])  | 
                                                        |
| 42 | + ])  | 
                                                        |
| 43 | 43 |              ->add('body', TextareaType::class, [ | 
                                                        
| 44 | 44 | 'required' => false,  | 
                                                        
| 45 | 45 | 'label' => 'lakion_sylius_cms.form.static_content.body',  | 
                                                        
@@ -5,7 +5,7 @@  | 
                                                    ||
| 5 | 5 | |
| 6 | 6 | /** @var ClassLoader $loader */  | 
                                                        
| 7 | 7 | $loader = require __DIR__.'/../../../../vendor/autoload.php';  | 
                                                        
| 8 | -require_once __DIR__ . '/AppKernel.php';  | 
                                                        |
| 8 | +require_once __DIR__.'/AppKernel.php';  | 
                                                        |
| 9 | 9 | |
| 10 | 10 | AnnotationRegistry::registerLoader([$loader, 'loadClass']);  | 
                                                        
| 11 | 11 | |
@@ -32,6 +32,6 @@  | 
                                                    ||
| 32 | 32 | */  | 
                                                        
| 33 | 33 | public function registerContainerConfiguration(LoaderInterface $loader)  | 
                                                        
| 34 | 34 |      { | 
                                                        
| 35 | - $loader->load($this->getRootDir() . '/config/config.yml');  | 
                                                        |
| 35 | + $loader->load($this->getRootDir().'/config/config.yml');  | 
                                                        |
| 36 | 36 | }  | 
                                                        
| 37 | 37 | }  | 
                                                        
@@ -32,7 +32,7 @@  | 
                                                    ||
| 32 | 32 | public function findPublishedOneByName($name)  | 
                                                        
| 33 | 33 |      { | 
                                                        
| 34 | 34 | /** @var StaticContent|null $staticContent */  | 
                                                        
| 35 | - $staticContent = $this->find($this->staticContentPath . '/' . $name);  | 
                                                        |
| 35 | + $staticContent = $this->find($this->staticContentPath.'/'.$name);  | 
                                                        |
| 36 | 36 | |
| 37 | 37 |          if (null === $staticContent || !$staticContent->isPublishable()) { | 
                                                        
| 38 | 38 | return null;  | 
                                                        
@@ -40,7 +40,7 @@  | 
                                                    ||
| 40 | 40 | $this->faker = \Faker\Factory::create();  | 
                                                        
| 41 | 41 | $this->optionsResolver =  | 
                                                        
| 42 | 42 | (new OptionsResolver())  | 
                                                        
| 43 | -                ->setDefault('name', function (Options $options) { | 
                                                        |
| 43 | +                ->setDefault('name', function(Options $options) { | 
                                                        |
| 44 | 44 | return StringInflector::nameToCode($this->faker->words(3, true));  | 
                                                        
| 45 | 45 | })  | 
                                                        
| 46 | 46 |                  ->setDefault('content', LazyOption::randomOne($staticContentRepository)) | 
                                                        
@@ -36,16 +36,16 @@  | 
                                                    ||
| 36 | 36 | $this->faker = \Faker\Factory::create();  | 
                                                        
| 37 | 37 | $this->optionsResolver =  | 
                                                        
| 38 | 38 | (new OptionsResolver())  | 
                                                        
| 39 | -                ->setDefault('title', function (Options $options) { | 
                                                        |
| 39 | +                ->setDefault('title', function(Options $options) { | 
                                                        |
| 40 | 40 | return $this->faker->words(3, true);  | 
                                                        
| 41 | 41 | })  | 
                                                        
| 42 | -                ->setDefault('name', function (Options $options) { | 
                                                        |
| 42 | +                ->setDefault('name', function(Options $options) { | 
                                                        |
| 43 | 43 | return StringInflector::nameToCode($options['title']);  | 
                                                        
| 44 | 44 | })  | 
                                                        
| 45 | -                ->setDefault('body', function (Options $options) { | 
                                                        |
| 45 | +                ->setDefault('body', function(Options $options) { | 
                                                        |
| 46 | 46 | return $this->faker->paragraphs(4, true);  | 
                                                        
| 47 | 47 | })  | 
                                                        
| 48 | -                ->setDefault('publishable', function (Options $options) { | 
                                                        |
| 48 | +                ->setDefault('publishable', function(Options $options) { | 
                                                        |
| 49 | 49 | return $this->faker->boolean(90);  | 
                                                        
| 50 | 50 | })  | 
                                                        
| 51 | 51 |                  ->setAllowedTypes('publishable', 'bool') |