Completed
Branch theme-bundle (26965f)
by Kamil
30:47 queued 24s
created
src/Sylius/Bundle/TranslationBundle/GedmoHandler/TranslationSlugHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,15 +116,15 @@  discard block
 block discarded – undo
116 116
         $wrapped = AbstractWrapper::wrap($relation, $this->om);
117 117
         if ($parent = $wrapped->getPropertyValue($options['relationParentRelationField'])) {
118 118
 
119
-            $translation = call_user_func_array(array($parent,$options['translate']), array($locale));
119
+            $translation = call_user_func_array(array($parent, $options['translate']), array($locale));
120 120
 
121 121
             $this->parentSlug = $translation->{$options['parentFieldMethod']}();
122 122
 
123 123
             // if needed, remove suffix from parentSlug, so we can use it to prepend it to our slug
124
-            if(isset($options['suffix'])) {
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) { //endsWith
128 128
                     $this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix));
129 129
                 }
130 130
             }
@@ -219,6 +219,6 @@  discard block
 block discarded – undo
219 219
      */
220 220
     private function deleteUnnecessaryParentSlug($slug)
221 221
     {
222
-        return preg_replace('/^' . preg_quote($this->parentSlug.$this->usedPathSeparator, '/') . '/', '', $slug);
222
+        return preg_replace('/^'.preg_quote($this->parentSlug.$this->usedPathSeparator, '/').'/', '', $slug);
223 223
     }
224 224
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/AddressType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 
87 87
         $resolver
88 88
             ->setDefaults(array(
89
-                'validation_groups' => function (Options $options) {
89
+                'validation_groups' => function(Options $options) {
90 90
                     if ($options['shippable']) {
91 91
                         $this->validationGroups[] = 'shippable';
92 92
                     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneMemberCollectionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     public function buildView(FormView $view, FormInterface $form, array $options)
56 56
     {
57 57
         if ($form->getConfig()->hasAttribute('prototypes')) {
58
-            $view->vars['prototypes'] = array_map(function (FormInterface $prototype) use ($view) {
58
+            $view->vars['prototypes'] = array_map(function(FormInterface $prototype) use ($view) {
59 59
                 return $prototype->createView($view);
60 60
             }, $form->getConfig()->getAttribute('prototypes'));
61 61
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ProvinceChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function configureOptions(OptionsResolver $resolver)
42 42
     {
43
-        $choiceList = function (Options $options) {
43
+        $choiceList = function(Options $options) {
44 44
             if (null === $options['country']) {
45 45
                 return new ObjectChoiceList($this->repository->findAll(), null, array(), null, 'id');
46 46
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/CountryChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function configureOptions(OptionsResolver $resolver)
42 42
     {
43
-        $choiceList = function (Options $options)  {
43
+        $choiceList = function(Options $options) {
44 44
             if (null === $options['enabled']) {
45 45
                 $choices = $this->countryRepository->findAll();
46 46
             } else {
Please login to merge, or discard this patch.
src/Sylius/Bundle/SettingsBundle/Twig/SettingsExtension.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
     public function getFunctions()
40 40
     {
41 41
         return array(
42
-             new \Twig_SimpleFunction('sylius_settings_all', array($this, 'getSettings')),
43
-             new \Twig_SimpleFunction('sylius_settings_get', array($this, 'getSettingsParameter')),
44
-             new \Twig_SimpleFunction('sylius_settings_has', array($this, 'hasSettingsParameter')),
42
+                new \Twig_SimpleFunction('sylius_settings_all', array($this, 'getSettings')),
43
+                new \Twig_SimpleFunction('sylius_settings_get', array($this, 'getSettingsParameter')),
44
+                new \Twig_SimpleFunction('sylius_settings_has', array($this, 'hasSettingsParameter')),
45 45
         );
46 46
     }
47 47
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/RbacBundle/Form/Type/PermissionEntityType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         parent::configureOptions($resolver);
28 28
 
29 29
         $resolver->setDefaults(array(
30
-            'query_builder' => function (EntityRepository $repository) {
30
+            'query_builder' => function(EntityRepository $repository) {
31 31
                 return $repository->createQueryBuilder('o')->orderBy('o.left', 'asc');
32 32
             },
33 33
         ));
Please login to merge, or discard this patch.
src/Sylius/Bundle/RbacBundle/Form/Type/RoleEntityType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         parent::configureOptions($resolver);
28 28
 
29 29
         $resolver->setDefaults(array(
30
-            'query_builder' => function (EntityRepository $repository) {
30
+            'query_builder' => function(EntityRepository $repository) {
31 31
                 return $repository->createQueryBuilder('o')->orderBy('o.left', 'asc');
32 32
             },
33 33
         ));
Please login to merge, or discard this patch.
src/Sylius/Bundle/RbacBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
                 ->arrayNode('roles_hierarchy')
171 171
                     ->useAttributeAsKey('id')
172 172
                     ->prototype('array')
173
-                        ->beforeNormalization()->ifString()->then(function ($v) { return array('value' => $v); })->end()
173
+                        ->beforeNormalization()->ifString()->then(function($v) { return array('value' => $v); })->end()
174 174
                         ->beforeNormalization()
175
-                            ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); })
176
-                            ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); })
175
+                            ->ifTrue(function($v) { return is_array($v) && isset($v['value']); })
176
+                            ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); })
177 177
                         ->end()
178 178
                         ->prototype('scalar')->end()
179 179
                     ->end()
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
                     ->useAttributeAsKey('id')
199 199
                     ->prototype('array')
200 200
                         ->performNoDeepMerging()
201
-                        ->beforeNormalization()->ifString()->then(function ($v) { return array('value' => $v); })->end()
201
+                        ->beforeNormalization()->ifString()->then(function($v) { return array('value' => $v); })->end()
202 202
                         ->beforeNormalization()
203
-                            ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); })
204
-                            ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); })
203
+                            ->ifTrue(function($v) { return is_array($v) && isset($v['value']); })
204
+                            ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); })
205 205
                         ->end()
206 206
                         ->prototype('scalar')->end()
207 207
                     ->end()
Please login to merge, or discard this patch.