@@ -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 | /** |