Passed
Push — develop ( 00d2f1...1275e7 )
by Daniel
05:07
created
src/Serializer/ApiContextBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private $decorated;
34 34
 
35
-    public function __construct(SerializerContextBuilderInterface $decorated)
35
+    public function __construct (SerializerContextBuilderInterface $decorated)
36 36
     {
37 37
         $this->decorated = $decorated;
38 38
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param null|string $operation
44 44
      * @return array
45 45
      */
46
-    private function getGroupNames(string $group, bool $normalization, ?string $operation): array
46
+    private function getGroupNames (string $group, bool $normalization, ?string $operation): array
47 47
     {
48 48
         $groups = [$group, $group . ($normalization ? '_read' : '_write')];
49 49
         if ($operation) {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param $matchClassName
58 58
      * @return bool
59 59
      */
60
-    private function matchClass($className, $matchClassName): bool
60
+    private function matchClass ($className, $matchClassName): bool
61 61
     {
62 62
         return $className === $matchClassName || is_subclass_of($className, $matchClassName);
63 63
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param string $operation
69 69
      * @return array
70 70
      */
71
-    private function getGroups(string $subject, bool $normalization, ?string $operation): array
71
+    private function getGroups (string $subject, bool $normalization, ?string $operation): array
72 72
     {
73 73
         /** @var string[] $groups */
74 74
         $groups = [];
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @return array
90 90
      * @throws \ApiPlatform\Core\Exception\RuntimeException
91 91
      */
92
-    public function createFromRequest(Request $request, bool $normalization, array $extractedAttributes = null) : array
92
+    public function createFromRequest (Request $request, bool $normalization, array $extractedAttributes = null) : array
93 93
     {
94 94
         $context = $this->decorated->createFromRequest($request, $normalization, $extractedAttributes);
95 95
         if (isset($context['groups']) && \in_array('none', $context['groups'], true)) {
Please login to merge, or discard this patch.
src/Serializer/ApiNormalizer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @param CacheManager $imagineCacheManager
28 28
      * @param FormViewFactory $formViewFactory
29 29
      */
30
-    public function __construct(
30
+    public function __construct (
31 31
         NormalizerInterface $decorated,
32 32
         string $projectDir,
33 33
         CacheManager $imagineCacheManager,
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param string|null $format
49 49
      * @return bool
50 50
      */
51
-    public function supportsNormalization($data, $format = null): bool
51
+    public function supportsNormalization ($data, $format = null): bool
52 52
     {
53 53
         return $this->decorated->supportsNormalization($data, $format);
54 54
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @throws \Symfony\Component\Serializer\Exception\InvalidArgumentException
63 63
      * @throws \Symfony\Component\Serializer\Exception\CircularReferenceException
64 64
      */
65
-    public function normalize($object, $format = null, array $context = [])
65
+    public function normalize ($object, $format = null, array $context = [])
66 66
     {
67 67
         $data = $this->decorated->normalize($object, $format, $context);
68 68
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param FileInterface $object
81 81
      * @return array
82 82
      */
83
-    private function getFileData(FileInterface $object)
83
+    private function getFileData (FileInterface $object)
84 84
     {
85 85
         $data = [];
86 86
         $originalFilePath = $object->getFilePath();
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * @param string|null $format
113 113
      * @return bool
114 114
      */
115
-    public function supportsDenormalization($data, $type, $format = null): bool
115
+    public function supportsDenormalization ($data, $type, $format = null): bool
116 116
     {
117 117
         return $this->decorated->supportsDenormalization($data, $type, $format);
118 118
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * @throws \Symfony\Component\Serializer\Exception\BadMethodCallException
132 132
      * @throws \InvalidArgumentException
133 133
      */
134
-    public function denormalize($data, $class, $format = null, array $context = [])
134
+    public function denormalize ($data, $class, $format = null, array $context = [])
135 135
     {
136 136
         $context['allow_extra_attributes'] = $class === Form::class;
137 137
         $entity = $this->decorated->denormalize($data, $class, $format, $context);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * @param SerializerInterface $serializer
149 149
      */
150
-    public function setSerializer(SerializerInterface $serializer)
150
+    public function setSerializer (SerializerInterface $serializer)
151 151
     {
152 152
         if ($this->decorated instanceof SerializerAwareInterface) {
153 153
             $this->decorated->setSerializer($serializer);
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @param null|string $filePath
159 159
      * @return null|string
160 160
      */
161
-    private function getRealFilePath(?string $filePath): ?string
161
+    private function getRealFilePath (?string $filePath): ?string
162 162
     {
163 163
         if (!$filePath || trim($filePath) === '') {
164 164
             return null;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * @param string $filePath
173 173
      * @return bool
174 174
      */
175
-    public function isImagineSupportedFile(?string $filePath): bool
175
+    public function isImagineSupportedFile (?string $filePath): bool
176 176
     {
177 177
         $filePath = $this->getRealFilePath($filePath);
178 178
         if (!$filePath) {
Please login to merge, or discard this patch.
src/Form/Handler/FormHandlerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
      * @param Form $form
11 11
      * @return mixed
12 12
      */
13
-    public function success(Form $form);
13
+    public function success (Form $form);
14 14
 }
Please login to merge, or discard this patch.
src/EventListener/Doctrine/EntitySubscriber.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param FilterService $filterService
39 39
      * @param ApiNormalizer $fileNormalizer
40 40
      */
41
-    public function __construct(
41
+    public function __construct (
42 42
         CacheManager $imagineCacheManager,
43 43
         FilterService $filterService,
44 44
         ApiNormalizer $fileNormalizer
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * @return array
53 53
      */
54
-    public function getSubscribedEvents(): array
54
+    public function getSubscribedEvents (): array
55 55
     {
56 56
         return [
57 57
             'onFlush'
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param OnFlushEventArgs $eventArgs
63 63
      * @throws \Doctrine\DBAL\DBALException
64 64
      */
65
-    public function onFlush(OnFlushEventArgs $eventArgs): void
65
+    public function onFlush (OnFlushEventArgs $eventArgs): void
66 66
     {
67 67
         $entityManager = $eventArgs->getEntityManager();
68 68
         if ($entityManager->getConnection()->getDatabasePlatform() instanceof SqlitePlatform) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @param UnitOfWork $unitOfWork
79 79
      */
80
-    private function processNewEntities(UnitOfWork $unitOfWork): void
80
+    private function processNewEntities (UnitOfWork $unitOfWork): void
81 81
     {
82 82
         $newEntities = $unitOfWork->getScheduledEntityInsertions();
83 83
         foreach ($newEntities as $entity) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @param UnitOfWork $unitOfWork
102 102
      */
103
-    private function processUpdatedEntities(UnitOfWork $unitOfWork): void
103
+    private function processUpdatedEntities (UnitOfWork $unitOfWork): void
104 104
     {
105 105
         $updatedEntities = $unitOfWork->getScheduledEntityUpdates();
106 106
         foreach ($updatedEntities as $entity) {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * @param UnitOfWork $unitOfWork
131 131
      */
132
-    private function processDeletedEntities(UnitOfWork $unitOfWork): void
132
+    private function processDeletedEntities (UnitOfWork $unitOfWork): void
133 133
     {
134 134
         $deletedEntities = $unitOfWork->getScheduledEntityDeletions();
135 135
         foreach ($deletedEntities as $entity) {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         }
143 143
     }
144 144
 
145
-    private function createFilteredImages(FileInterface $file): void
145
+    private function createFilteredImages (FileInterface $file): void
146 146
     {
147 147
         $filters = $file::getImagineFilters();
148 148
         foreach ($filters as $filter) {
Please login to merge, or discard this patch.
src/DependencyInjection/SilverbackApiComponentExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param ContainerBuilder $container
22 22
      * @throws \Exception
23 23
      */
24
-    public function load(array $configs, ContainerBuilder $container)
24
+    public function load (array $configs, ContainerBuilder $container)
25 25
     {
26 26
         $this->loadServiceConfig($container);
27 27
     }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param ContainerBuilder $container
31 31
      * @throws \Exception
32 32
      */
33
-    private function loadServiceConfig(ContainerBuilder $container)
33
+    private function loadServiceConfig (ContainerBuilder $container)
34 34
     {
35 35
         $loader = new PhpFileLoader(
36 36
             $container,
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param ContainerBuilder $container
59 59
      * @throws \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
60 60
      */
61
-    public function prepend(ContainerBuilder $container)
61
+    public function prepend (ContainerBuilder $container)
62 62
     {
63 63
         $bundles = $container->getParameter('kernel.bundles');
64 64
         $container->prependExtensionConfig('api_platform', [
Please login to merge, or discard this patch.
src/Command/FormCacheClear.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     private $output;
22 22
 
23
-    public function __construct(
23
+    public function __construct (
24 24
         EntityManagerInterface $em,
25 25
         ?string $name = null
26 26
     ) {
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @throws \Symfony\Component\Console\Exception\InvalidArgumentException
33 33
      */
34
-    protected function configure(): void
34
+    protected function configure (): void
35 35
     {
36 36
         $this
37 37
             ->setName('app:form:cache:clear')
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @return int|null|void
46 46
      * @throws \ReflectionException
47 47
      */
48
-    protected function execute(InputInterface $input, OutputInterface $output)
48
+    protected function execute (InputInterface $input, OutputInterface $output)
49 49
     {
50 50
         $this->output = $output;
51 51
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * @param Form $form
62 62
      * @throws \ReflectionException
63 63
      */
64
-    private function updateFormTimestamp(Form $form)
64
+    private function updateFormTimestamp (Form $form)
65 65
     {
66 66
         $formClass = $form->getFormType();
67 67
         $reflector = new \ReflectionClass($formClass);
Please login to merge, or discard this patch.
src/Command/LoadFixturesCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * @throws \Symfony\Component\Console\Exception\InvalidArgumentException
14 14
      */
15
-    protected function configure()
15
+    protected function configure ()
16 16
     {
17 17
         $this
18 18
             ->setName('api-component-bundle:fixtures:load')
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @return int|null|void
27 27
      * @throws \Exception
28 28
      */
29
-    protected function execute(InputInterface $input, OutputInterface $output)
29
+    protected function execute (InputInterface $input, OutputInterface $output)
30 30
     {
31 31
         $command = $this->getApplication()->find('doctrine:schema:drop');
32 32
         $arguments = [
Please login to merge, or discard this patch.
src/Repository/AbstractComponentRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class AbstractComponentRepository extends ServiceEntityRepository
10 10
 {
11
-    public function __construct(RegistryInterface $registry)
11
+    public function __construct (RegistryInterface $registry)
12 12
     {
13 13
         parent::__construct($registry, AbstractComponent::class);
14 14
     }
Please login to merge, or discard this patch.
src/Repository/AbstractContentRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class AbstractContentRepository extends ServiceEntityRepository
10 10
 {
11
-    public function __construct(RegistryInterface $registry)
11
+    public function __construct (RegistryInterface $registry)
12 12
     {
13 13
         parent::__construct($registry, AbstractContent::class);
14 14
     }
Please login to merge, or discard this patch.