Completed
Push — master ( 00da88...18ec14 )
by Kamil
22:59
created
src/Sylius/Bundle/ResourceBundle/Behat/FixtureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $data = $table->getRowsHash();
78 78
         $type = str_replace(' ', '_', trim($type));
79 79
 
80
-        $object = $this->waitFor(function () use ($type, $data) {
80
+        $object = $this->waitFor(function() use ($type, $data) {
81 81
             try {
82 82
                 return $this->findOneByName($type, $data['name']);
83 83
             } catch (\InvalidArgumentException $exception) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Behat/WebContext.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $entityManager = $this->getEntityManager();
88 88
         $entityManager->getFilters()->disable('softdeleteable');
89 89
 
90
-        $resource = $this->waitFor(function () use ($type, $property, $value) {
90
+        $resource = $this->waitFor(function() use ($type, $property, $value) {
91 91
             return $this->getRepository($type)->findOneBy([$property => $value]);
92 92
         });
93 93
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     {
299 299
         $tableNode = new TableNode(array(
300 300
             array(trim($columnName)),
301
-            array(trim('%' . $value . '%')),
301
+            array(trim('%'.$value.'%')),
302 302
         ));
303 303
 
304 304
         $this->iShouldSeeTheFollowingRow($tableNode);
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     {
314 314
         $tableNode = new TableNode(array(
315 315
             array(trim($columnName)),
316
-            array(trim('%' . $value . '%')),
316
+            array(trim('%'.$value.'%')),
317 317
         ));
318 318
 
319 319
         $this->iShouldNotSeeTheFollowingRow($tableNode);
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
      */
415 415
     public function iWait($time)
416 416
     {
417
-        $this->getSession()->wait($time*1000);
417
+        $this->getSession()->wait($time * 1000);
418 418
     }
419 419
 
420 420
     /**
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
     public function iShouldBeOnThePageWithGivenParent($page, $parentType, $parentName)
518 518
     {
519 519
         $parent = $this->findOneByName($parentType, $parentName);
520
-        $this->assertSession()->addressEquals($this->generatePageUrl($page, array(sprintf('%sId',$parentType) => $parent->getId())));
520
+        $this->assertSession()->addressEquals($this->generatePageUrl($page, array(sprintf('%sId', $parentType) => $parent->getId())));
521 521
 
522 522
         try {
523 523
             $this->assertStatusCodeEquals(200);
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
      */
531 531
     public function iAmDoingSomethingWithResourceByNameFromGivenCategory($action, $type, $name, $categoryType, $categoryName)
532 532
     {
533
-        $type = str_replace(' ','_', $type);
533
+        $type = str_replace(' ', '_', $type);
534 534
         $action = str_replace(array_keys($this->actions), array_values($this->actions), $action);
535 535
 
536 536
         $root = $this->findOneByName($categoryType, $categoryName);
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
      */
612 612
     protected function waitForModalToAppear($modalContainer)
613 613
     {
614
-        $this->waitFor(function () use ($modalContainer) {
614
+        $this->waitFor(function() use ($modalContainer) {
615 615
             return false !== strpos($modalContainer->getAttribute('class'), 'in');
616 616
         });
617 617
     }
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
      */
622 622
     protected function waitForModalToDisappear($modalContainer)
623 623
     {
624
-        $this->waitFor(function () use ($modalContainer) {
624
+        $this->waitFor(function() use ($modalContainer) {
625 625
             return false === strpos($modalContainer->getAttribute('class'), 'in');
626 626
         });
627 627
     }
Please login to merge, or discard this patch.
ResourceBundle/DependencyInjection/Driver/Doctrine/DoctrinePHPCRDriver.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
         $repositoryClass = new Parameter('sylius.phpcr_odm.repository.class');
41 41
 
42 42
         if ($metadata->hasClass('repository')) {
43
-            $repositoryClass  = $metadata->getClass('repository');
43
+            $repositoryClass = $metadata->getClass('repository');
44 44
         }
45 45
 
46 46
         $definition = new Definition($repositoryClass);
Please login to merge, or discard this patch.
Sylius/Bundle/TranslationBundle/EventListener/ORMTranslatableListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@
 block discarded – undo
110 110
         $translatableResourceMetadata = $this->registry->get(str_replace('_translation', '', $resourceMetadata->getAlias()));
111 111
 
112 112
         $metadata->mapManyToOne(array(
113
-            'fieldName'    => 'translatable' ,
113
+            'fieldName'    => 'translatable',
114 114
             'targetEntity' => $translatableResourceMetadata->getClass('model'),
115
-            'inversedBy'   => 'translations' ,
115
+            'inversedBy'   => 'translations',
116 116
             'joinColumns'  => array(array(
117 117
                 'name'                 => 'translatable_id',
118 118
                 'referencedColumnName' => 'id',
Please login to merge, or discard this patch.
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/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/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.