| @@ -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; | 
| @@ -36,12 +36,12 @@ | ||
| 36 | 36 | $this->faker = \Faker\Factory::create(); | 
| 37 | 37 | $this->optionsResolver = | 
| 38 | 38 | (new OptionsResolver()) | 
| 39 | -                ->setDefault('name', function (Options $options) { | |
| 39 | +                ->setDefault('name', function(Options $options) { | |
| 40 | 40 | return StringInflector::nameToCode($this->faker->words(3, true)); | 
| 41 | 41 | }) | 
| 42 | 42 |                  ->setAllowedTypes('name', 'string') | 
| 43 | 43 | |
| 44 | -                ->setDefault('body', function (Options $options) { | |
| 44 | +                ->setDefault('body', function(Options $options) { | |
| 45 | 45 | return $this->faker->sentence(); | 
| 46 | 46 | }) | 
| 47 | 47 |                  ->setAllowedTypes('body', 'string') | 
| @@ -36,22 +36,22 @@ | ||
| 36 | 36 | $this->faker = \Faker\Factory::create(); | 
| 37 | 37 | $this->optionsResolver = | 
| 38 | 38 | (new OptionsResolver()) | 
| 39 | -                ->setDefault('name', function (Options $options) { | |
| 39 | +                ->setDefault('name', function(Options $options) { | |
| 40 | 40 | return StringInflector::nameToCode($options['title']); | 
| 41 | 41 | }) | 
| 42 | 42 |                  ->setAllowedTypes('name', 'string') | 
| 43 | 43 | |
| 44 | -                ->setDefault('title', function (Options $options) { | |
| 44 | +                ->setDefault('title', function(Options $options) { | |
| 45 | 45 | return $this->faker->words(3, true); | 
| 46 | 46 | }) | 
| 47 | 47 |                  ->setAllowedTypes('title', 'string') | 
| 48 | 48 | |
| 49 | -                ->setDefault('body', function (Options $options) { | |
| 49 | +                ->setDefault('body', function(Options $options) { | |
| 50 | 50 | return $this->faker->sentence(); | 
| 51 | 51 | }) | 
| 52 | 52 |                  ->setAllowedTypes('body', 'string') | 
| 53 | 53 | |
| 54 | -                ->setDefault('link', function (Options $options) { | |
| 54 | +                ->setDefault('link', function(Options $options) { | |
| 55 | 55 | return $this->faker->url; | 
| 56 | 56 | }) | 
| 57 | 57 |                  ->setAllowedTypes('link', 'string') | 
| @@ -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 | } | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | */ | 
| 44 | 44 | public function attachImage($relativePath) | 
| 45 | 45 |      { | 
| 46 | -        $this->getSession()->getPage()->attachFileToField('Image', (string) $this->getParameter('files_path') . $relativePath); | |
| 46 | +        $this->getSession()->getPage()->attachFileToField('Image', (string) $this->getParameter('files_path').$relativePath); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | */ | 
| 44 | 44 | public function attachImage($relativePath) | 
| 45 | 45 |      { | 
| 46 | -        $this->getSession()->getPage()->attachFileToField('Image', (string) $this->getParameter('files_path') . $relativePath); | |
| 46 | +        $this->getSession()->getPage()->attachFileToField('Image', (string) $this->getParameter('files_path').$relativePath); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| @@ -36,22 +36,22 @@ | ||
| 36 | 36 | $this->faker = \Faker\Factory::create(); | 
| 37 | 37 | $this->optionsResolver = | 
| 38 | 38 | (new OptionsResolver()) | 
| 39 | -                ->setDefault('name', function (Options $options) { | |
| 39 | +                ->setDefault('name', function(Options $options) { | |
| 40 | 40 | return StringInflector::nameToCode($options['title']); | 
| 41 | 41 | }) | 
| 42 | 42 |                  ->setAllowedTypes('name', 'string') | 
| 43 | 43 | |
| 44 | -                ->setDefault('title', function (Options $options) { | |
| 44 | +                ->setDefault('title', function(Options $options) { | |
| 45 | 45 | return $this->faker->words(3, true); | 
| 46 | 46 | }) | 
| 47 | 47 |                  ->setAllowedTypes('title', 'string') | 
| 48 | 48 | |
| 49 | -                ->setDefault('body', function (Options $options) { | |
| 49 | +                ->setDefault('body', function(Options $options) { | |
| 50 | 50 | return $this->faker->sentence(); | 
| 51 | 51 | }) | 
| 52 | 52 |                  ->setAllowedTypes('body', 'string') | 
| 53 | 53 | |
| 54 | -                ->setDefault('link', function (Options $options) { | |
| 54 | +                ->setDefault('link', function(Options $options) { | |
| 55 | 55 | return $this->faker->url; | 
| 56 | 56 | }) | 
| 57 | 57 |                  ->setAllowedTypes('link', 'string') | 
| @@ -36,22 +36,22 @@ | ||
| 36 | 36 | $this->faker = \Faker\Factory::create(); | 
| 37 | 37 | $this->optionsResolver = | 
| 38 | 38 | (new OptionsResolver()) | 
| 39 | -                ->setDefault('name', function (Options $options) { | |
| 39 | +                ->setDefault('name', function(Options $options) { | |
| 40 | 40 | return StringInflector::nameToCode($options['title']); | 
| 41 | 41 | }) | 
| 42 | 42 |                  ->setAllowedTypes('name', 'string') | 
| 43 | 43 | |
| 44 | -                ->setDefault('title', function (Options $options) { | |
| 44 | +                ->setDefault('title', function(Options $options) { | |
| 45 | 45 | return $this->faker->words(3, true); | 
| 46 | 46 | }) | 
| 47 | 47 |                  ->setAllowedTypes('title', 'string') | 
| 48 | 48 | |
| 49 | -                ->setDefault('body', function (Options $options) { | |
| 49 | +                ->setDefault('body', function(Options $options) { | |
| 50 | 50 | return $this->faker->sentence(); | 
| 51 | 51 | }) | 
| 52 | 52 |                  ->setAllowedTypes('body', 'string') | 
| 53 | 53 | |
| 54 | -                ->setDefault('link', function (Options $options) { | |
| 54 | +                ->setDefault('link', function(Options $options) { | |
| 55 | 55 | return $this->faker->url; | 
| 56 | 56 | }) | 
| 57 | 57 |                  ->setAllowedTypes('link', 'string') | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | */ | 
| 44 | 44 | public function attachImage($relativePath) | 
| 45 | 45 |      { | 
| 46 | -        $this->getSession()->getPage()->attachFileToField('Image', (string) $this->getParameter('files_path') . $relativePath); | |
| 46 | +        $this->getSession()->getPage()->attachFileToField('Image', (string) $this->getParameter('files_path').$relativePath); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** |