Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Bundle/ResourceBundle/GedmoHandler/TranslationSlugHandler.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,8 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/DependencyInjection/Configuration.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
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)))
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Translation/ThemeAwareTranslatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -496,7 +496,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/spec/Filter/StringFilterSpec.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/spec/FieldTypes/DatetimeFieldTypeSpec.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.