Completed
Pull Request — master (#78)
by Tobias
26:00
created
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/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
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
110
+     * @return ContainerBuilder
111 111
      */
112 112
     private function createContainerBuilderMock()
113 113
     {
Please login to merge, or discard this patch.
src/Bundle/UiBundle/Tests/Menu/MenuBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             ->method('dispatch')
76 76
             ->with(
77 77
                 $this->identicalTo(MenuBuilderEvents::BUILD),
78
-                $this->callback(function (MenuBuilderEvent $event) use ($item) {
78
+                $this->callback(function(MenuBuilderEvent $event) use ($item) {
79 79
                     return $event->getFactory() === $this->factory
80 80
                         && $event->getItem() === $item;
81 81
                 })
Please login to merge, or discard this patch.
GridBundle/Form/EventSubscriber/Batch/AbstractGridBatchSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 
126 126
         $this->buildForm($form, $choices);
127 127
 
128
-        return array_map(function ($choice) use ($choiceValue) {
128
+        return array_map(function($choice) use ($choiceValue) {
129 129
             return call_user_func($choiceValue, $choice);
130 130
         }, $choices);
131 131
     }
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Batch/GridBatchAllType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
     {
30 30
         $resolver
31 31
             ->setDefaults([
32
-                'label' => function (Options $options) {
32
+                'label' => function(Options $options) {
33 33
                     return 'lug.'.$options['grid']->getDefinition()->getResource()->getName().'.batch.all';
34 34
                 },
35
-                'label_translation_arguments' => function (Options $options) {
35
+                'label_translation_arguments' => function(Options $options) {
36 36
                     return ['%count%' => count($options['grid']->getDataSource())];
37 37
                 },
38 38
             ])
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/RegisterRegistryPassTest.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
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
110
+     * @return ContainerBuilder
111 111
      */
112 112
     private function createContainerBuilderMock()
113 113
     {
Please login to merge, or discard this patch.
src/Component/Locale/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/Component/Grid/Tests/DataSource/PagerfantaDataSourceTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @return \PHPUnit_Framework_MockObject_MockObject|AdapterInterface
44
+     * @return AdapterInterface
45 45
      */
46 46
     private function createAdapterMock()
47 47
     {
Please login to merge, or discard this patch.