Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Bundle/SearchBundle/Indexer/ElasticsearchIndexer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,8 @@
 block discarded – undo
52 52
 
53 53
         $output = new BufferedOutput();
54 54
         $input = new ArgvInput(['env' => $this->kernel->getEnvironment()]);
55
-        if ($command->run($input, $output)) { //return code is not zero
55
+        if ($command->run($input, $output)) {
56
+//return code is not zero
56 57
             throw new \RuntimeException($output->fetch());
57 58
         }
58 59
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/Behat/SearchContext.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@
 block discarded – undo
33 33
         $command->setContainer($this->getContainer());
34 34
 
35 35
         $output = new BufferedOutput();
36
-        if ($command->run(new ArgvInput(['env' => 'test']), $output)) { //return code is not zero
36
+        if ($command->run(new ArgvInput(['env' => 'test']), $output)) {
37
+//return code is not zero
37 38
             throw new \RuntimeException($output->fetch());
38 39
         }
39 40
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/Finder/ElasticsearchFinder.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
         }
331 331
 
332 332
         foreach ($facets as &$facet) {
333
-            $facet = array_filter($facet, function($v){
333
+            $facet = array_filter($facet, function($v) {
334 334
                 return $v["doc_count"] != 0;
335 335
             });
336 336
         }
Please login to merge, or discard this patch.
ResourceBundle/Doctrine/ODM/PHPCR/Form/Builder/DefaultFormBuilder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function __construct(
37 37
         DocumentManagerInterface $documentManager
38
-    )
39
-    {
38
+    ) {
40 39
         $this->documentManager = $documentManager;
41 40
     }
42 41
 
Please login to merge, or discard this patch.
ResourceBundle/Doctrine/ODM/PHPCR/EventListener/NameFilterListener.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@
 block discarded – undo
46 46
     public function __construct(
47 47
         DocumentManagerInterface $documentManager,
48 48
         $replacementCharacter = ' '
49
-    )
50
-    {
49
+    ) {
51 50
         $this->documentManager = $documentManager;
52 51
         $this->replacementCharacter = $replacementCharacter;
53 52
     }
Please login to merge, or discard this patch.
ResourceBundle/Doctrine/ODM/PHPCR/EventListener/DefaultParentListener.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
         $parentPath,
49 49
         $autocreate = false,
50 50
         $force = false
51
-    )
52
-    {
51
+    ) {
53 52
         $this->documentManager = $documentManager;
54 53
         $this->parentPath = $parentPath;
55 54
         $this->autocreate = $autocreate;
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
     private function resolveParent(
74 73
         $document,
75 74
         ClassMetadata $metadata
76
-    )
77
-    {
75
+    ) {
78 76
         if (!$parentField = $metadata->parentMapping) {
79 77
             throw new \RuntimeException(sprintf(
80 78
                 'A default parent path has been specified, but no parent mapping has been applied to document "%s"',
Please login to merge, or discard this patch.
ResourceBundle/Doctrine/ODM/PHPCR/EventListener/NameResolverListener.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function __construct(
41 41
         DocumentManagerInterface $documentManager
42
-    )
43
-    {
42
+    ) {
44 43
         $this->documentManager = $documentManager;
45 44
     }
46 45
 
Please login to merge, or discard this patch.
spec/Doctrine/ODM/PHPCR/EventListener/DefaultParentListenerSpec.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 {
30 30
     function let(
31 31
         DocumentManagerInterface $documentManager
32
-    )
33
-    {
32
+    ) {
34 33
         $this->beConstructedWith(
35 34
             $documentManager,
36 35
             '/path/to'
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
         ResourceControllerEvent $event,
47 46
         ClassMetadata $documentMetadata,
48 47
         DocumentManagerInterface $documentManager
49
-    )
50
-    {
48
+    ) {
51 49
         $event->getSubject()->willReturn(new \stdClass());
52 50
         $documentManager->getClassMetadata(\stdClass::class)->willReturn(
53 51
             $documentMetadata
@@ -66,8 +64,7 @@  discard block
 block discarded – undo
66 64
         ResourceControllerEvent $event,
67 65
         ClassMetadata $documentMetadata,
68 66
         DocumentManagerInterface $documentManager
69
-    )
70
-    {
67
+    ) {
71 68
         $this->beConstructedWith(
72 69
             $documentManager,
73 70
             '/path/to',
@@ -92,8 +89,7 @@  discard block
 block discarded – undo
92 89
         ResourceControllerEvent $event,
93 90
         ClassMetadata $documentMetadata,
94 91
         DocumentManagerInterface $documentManager
95
-    )
96
-    {
92
+    ) {
97 93
         $subjectDocument = new \stdClass();
98 94
         $parentDocument = new \stdClass();
99 95
 
@@ -115,8 +111,7 @@  discard block
 block discarded – undo
115 111
         DocumentManagerInterface $documentManager,
116 112
         SessionInterface $session,
117 113
         NodeInterface $node
118
-    )
119
-    {
114
+    ) {
120 115
         $this->beConstructedWith(
121 116
             $documentManager,
122 117
             '/path/to',
@@ -151,8 +146,7 @@  discard block
 block discarded – undo
151 146
         ResourceControllerEvent $event,
152 147
         ClassMetadata $documentMetadata,
153 148
         DocumentManagerInterface $documentManager
154
-    )
155
-    {
149
+    ) {
156 150
         $this->beConstructedWith(
157 151
             $documentManager,
158 152
             '/path/to',
@@ -181,8 +175,7 @@  discard block
 block discarded – undo
181 175
         ResourceControllerEvent $event,
182 176
         ClassMetadata $documentMetadata,
183 177
         DocumentManagerInterface $documentManager
184
-    )
185
-    {
178
+    ) {
186 179
         $subjectDocument = new \stdClass();
187 180
 
188 181
         $event->getSubject()->willReturn($subjectDocument);
Please login to merge, or discard this patch.
spec/Doctrine/ODM/PHPCR/EventListener/NameFilterListenerSpec.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
 {
27 27
     function let(
28 28
         DocumentManagerInterface $documentManager
29
-    )
30
-    {
29
+    ) {
31 30
         $this->beConstructedWith(
32 31
             $documentManager
33 32
         );
@@ -42,8 +41,7 @@  discard block
 block discarded – undo
42 41
         ResourceControllerEvent $event,
43 42
         DocumentManagerInterface $documentManager,
44 43
         ClassMetadata $metadata
45
-    )
46
-    {
44
+    ) {
47 45
         $document = new \stdClass();
48 46
         $event->getSubject()->willReturn($document);
49 47
         $documentManager->getClassMetadata('stdClass')->willReturn($metadata);
@@ -56,8 +54,7 @@  discard block
 block discarded – undo
56 54
         ResourceControllerEvent $event,
57 55
         DocumentManagerInterface $documentManager,
58 56
         ClassMetadata $metadata
59
-    )
60
-    {
57
+    ) {
61 58
         $document = new \stdClass();
62 59
         $event->getSubject()->willReturn($document);
63 60
         $documentManager->getClassMetadata('stdClass')->willReturn($metadata);
@@ -72,8 +69,7 @@  discard block
 block discarded – undo
72 69
         ResourceControllerEvent $event,
73 70
         DocumentManagerInterface $documentManager,
74 71
         ClassMetadata $metadata
75
-    )
76
-    {
72
+    ) {
77 73
         $this->beConstructedWith($documentManager, '_');
78 74
 
79 75
         $document = new \stdClass();
Please login to merge, or discard this patch.