@@ -124,7 +124,8 @@ |
||
124 | 124 | if (isset($options['suffix'])) { |
125 | 125 | $suffix = $options['suffix']; |
126 | 126 | |
127 | - if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { //endsWith |
|
127 | + if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { |
|
128 | +//endsWith |
|
128 | 129 | $this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix)); |
129 | 130 | } |
130 | 131 | } |
@@ -196,7 +196,7 @@ |
||
196 | 196 | ->arrayNode('drivers') |
197 | 197 | ->info('Enable drivers which are distributed with this bundle') |
198 | 198 | ->validate() |
199 | - ->ifTrue(function ($value) use ($validDrivers) { |
|
199 | + ->ifTrue(function ($value) use ($validDrivers) { |
|
200 | 200 | return 0 !== count(array_diff($value, $validDrivers)); |
201 | 201 | }) |
202 | 202 | ->thenInvalid(sprintf('Invalid driver specified in %%s, valid drivers: ["%s"]', implode('", "', $validDrivers))) |
@@ -28,7 +28,8 @@ |
||
28 | 28 | */ |
29 | 29 | class ThemeAwareTranslatorSpec extends ObjectBehavior |
30 | 30 | { |
31 | - function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) { |
|
31 | + function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) |
|
32 | + { |
|
32 | 33 | $translator->implement(TranslatorBagInterface::class); |
33 | 34 | |
34 | 35 | $this->beConstructedWith($translator, $themeContext); |
@@ -496,7 +496,7 @@ |
||
496 | 496 | /** |
497 | 497 | * @return bool |
498 | 498 | */ |
499 | - public function isSimple() |
|
499 | + public function isSimple() |
|
500 | 500 | { |
501 | 501 | return 1 === $this->variants->count() && !$this->hasOptions(); |
502 | 502 | } |
@@ -62,8 +62,7 @@ discard block |
||
62 | 62 | function it_filters_data_containing_empty_strings( |
63 | 63 | DataSourceInterface $dataSource, |
64 | 64 | ExpressionBuilderInterface $expressionBuilder |
65 | - ) |
|
66 | - { |
|
65 | + ) { |
|
67 | 66 | $dataSource->getExpressionBuilder()->willReturn($expressionBuilder); |
68 | 67 | |
69 | 68 | $expressionBuilder->isNull('firstName')->willReturn('EXPR'); |
@@ -87,8 +86,7 @@ discard block |
||
87 | 86 | function it_filters_data_containing_a_string( |
88 | 87 | DataSourceInterface $dataSource, |
89 | 88 | ExpressionBuilderInterface $expressionBuilder |
90 | - ) |
|
91 | - { |
|
89 | + ) { |
|
92 | 90 | $dataSource->getExpressionBuilder()->willReturn($expressionBuilder); |
93 | 91 | |
94 | 92 | $expressionBuilder->like('firstName', '%John%')->willReturn('EXPR'); |
@@ -65,8 +65,7 @@ |
||
65 | 65 | |
66 | 66 | function is_configures_options( |
67 | 67 | OptionsResolver $resolver |
68 | - ) |
|
69 | - { |
|
68 | + ) { |
|
70 | 69 | $resolver->setDefaults([ |
71 | 70 | 'format' => 'Y:m:d H:i:s' |
72 | 71 | ])->shouldBeCalled(); |