Completed
Push — master ( f07a40...f1e948 )
by Eric
14:52
created
src/Bundle/GridBundle/Form/Type/Batch/GridBatchValueType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function configureOptions(OptionsResolver $resolver)
54 54
     {
55
-        $idPropertyPath = function (Options $options) {
55
+        $idPropertyPath = function(Options $options) {
56 56
             $propertyPath = $options['grid']->getDefinition()->getResource()->getIdPropertyPath();
57 57
 
58
-            return function ($choice) use ($propertyPath) {
58
+            return function($choice) use ($propertyPath) {
59 59
                 return $this->propertyAccessor->getValue($choice, $propertyPath);
60 60
             };
61 61
         };
62 62
 
63
-        $labelPropertyPath = function (Options $options) {
63
+        $labelPropertyPath = function(Options $options) {
64 64
             $propertyPath = $options['grid']->getDefinition()->getResource()->getLabelPropertyPath();
65 65
 
66
-            return function ($choice) use ($propertyPath) {
66
+            return function($choice) use ($propertyPath) {
67 67
                 return $this->propertyAccessor->getValue($choice, $propertyPath);
68 68
             };
69 69
         };
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
                 'choice_name'        => $idPropertyPath,
78 78
                 'choice_value'       => $idPropertyPath,
79 79
                 'choice_label'       => $labelPropertyPath,
80
-                'class'              => function (Options $options) {
80
+                'class'              => function(Options $options) {
81 81
                     return $options['grid']->getDefinition()->getResource()->getModel();
82 82
                 },
83
-                'expanded' => function (Options $options) {
83
+                'expanded' => function(Options $options) {
84 84
                     return !$this->parameterResolver->resolveApi();
85 85
                 },
86
-                'constraints' => function (Options $options) {
86
+                'constraints' => function(Options $options) {
87 87
                     $resource = $options['grid']->getDefinition()->getResource();
88 88
 
89 89
                     return [new Count([
Please login to merge, or discard this patch.
GridBundle/Tests/DataSource/Doctrine/MongoDB/ExpressionBuilderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
         $expr
385 385
             ->expects($this->once())
386 386
             ->method('equals')
387
-            ->with($this->callback(function ($parameter) use ($regex) {
387
+            ->with($this->callback(function($parameter) use ($regex) {
388 388
                 return $parameter instanceof \MongoRegex && (string) $parameter === $regex;
389 389
             }))
390 390
             ->will($this->returnSelf());
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         $expr
412 412
             ->expects($this->once())
413 413
             ->method('not')
414
-            ->with($this->callback(function ($parameter) use ($regex) {
414
+            ->with($this->callback(function($parameter) use ($regex) {
415 415
                 return $parameter instanceof \MongoRegex && (string) $parameter === $regex;
416 416
             }))
417 417
             ->will($this->returnSelf());
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/ConvertServiceRegistryPassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             ->method('setDefinition')
99 99
             ->withConsecutive(
100 100
                 [$service.'.internal', $definition],
101
-                [$service, $this->callback(function ($definition) use ($service, $types) {
101
+                [$service, $this->callback(function($definition) use ($service, $types) {
102 102
                     $result = $definition instanceof Definition
103 103
                         && $definition->getClass() === LazyServiceRegistry::class
104 104
                         && count($definition->getArguments()) === 2
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/RegisterServiceRegistryPassTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             ->method('addMethodCall')
82 82
             ->with(
83 83
                 $this->identicalTo('offsetSet'),
84
-                $this->callback(function (array $args) use ($service, $name) {
84
+                $this->callback(function(array $args) use ($service, $name) {
85 85
                     return isset($args[0])
86 86
                         && isset($args[1])
87 87
                         && $args[0] === $name
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
54
+     * @return ContainerBuilder
55 55
      */
56 56
     private function createContainerBuilderMock()
57 57
     {
Please login to merge, or discard this patch.
src/Bundle/TranslationBundle/Form/Type/TranslatableType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $builder->add('translations', TranslationsFormsType::class, [
31 31
             'form_type'  => $options['resource']->getTranslation()->getForm(),
32
-            'empty_data' => function () {
32
+            'empty_data' => function() {
33 33
                 return new ArrayCollection();
34 34
             },
35 35
         ]);
Please login to merge, or discard this patch.
src/Bundle/TranslationBundle/Provider/A2lixLocaleProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     private function getCallback()
64 64
     {
65
-        return function (LocaleInterface $locale) {
65
+        return function(LocaleInterface $locale) {
66 66
             return $locale->getCode();
67 67
         };
68 68
     }
Please login to merge, or discard this patch.
src/Bundle/LocaleBundle/Form/Type/LocaleCodeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function buildView(FormView $view, FormInterface $form, array $options)
44 44
     {
45
-        $locales = array_flip(array_map(function (LocaleInterface $locale) {
45
+        $locales = array_flip(array_map(function(LocaleInterface $locale) {
46 46
             return (string) $locale->getCode();
47 47
         }, $this->localeRepository->findAll()));
48 48
 
Please login to merge, or discard this patch.
src/Bundle/LocaleBundle/Context/LocaleContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         $acceptLanguage = trim($request->headers->get('Accept-Language'));
96 96
 
97 97
         if (!empty($acceptLanguage)) {
98
-            $locales = array_map(function (AcceptLanguage $acceptLanguage) {
98
+            $locales = array_map(function(AcceptLanguage $acceptLanguage) {
99 99
                 return $acceptLanguage->getType();
100 100
             }, $this->localeNegotiator->parse($acceptLanguage));
101 101
         }
Please login to merge, or discard this patch.
Bundle/UiBundle/Tests/DependencyInjection/Compiler/RegisterMenuPassTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             ->method('setDefinition')
56 56
             ->with(
57 57
                 $this->identicalTo($service.'.menu'),
58
-                $this->callback(function (Definition $definition) use ($service, $alias) {
58
+                $this->callback(function(Definition $definition) use ($service, $alias) {
59 59
                     return $definition->getClass() === ItemInterface::class
60 60
                         && $definition->getTag('knp_menu.menu') === [['alias' => $alias]]
61 61
                         && is_array($factory = $definition->getFactory())
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
54
+     * @return ContainerBuilder
55 55
      */
56 56
     private function createContainerBuilderMock()
57 57
     {
Please login to merge, or discard this patch.