Passed
Branch master (1c67ec)
by Tarmo
02:30
created
src/Utils/JSON.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @throws \LogicException
54 54
      */
55
-    public static function encode($input, ?int $options = null, ?int $depth = null): string
55
+    public static function encode($input, ?int $options = null, ?int $depth = null) : string
56 56
     {
57 57
         $options = $options ?? 0;
58 58
         $depth = $depth ?? 512;
Please login to merge, or discard this patch.
src/Form/DataTransformer/UserGroupTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return array
44 44
      */
45
-    public function transform($userGroups): ?array
45
+    public function transform($userGroups): ? array
46 46
     {
47 47
         $output = [];
48 48
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @throws TransformationFailedException if object (issue) is not found.
73 73
      */
74
-    public function reverseTransform($userGroups): ?array
74
+    public function reverseTransform($userGroups): ? array
75 75
     {
76 76
         $output = null;
77 77
 
Please login to merge, or discard this patch.
src/Rest/SearchTerm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return array|null
28 28
      */
29
-    public static function getCriteria($column, $search, string $operand = null, int $mode = null): ?array
29
+    public static function getCriteria($column, $search, string $operand = null, int $mode = null): ? array
30 30
     {
31 31
         $operand = $operand ?? self::OPERAND_OR;
32 32
         $mode = $mode ?? self::MODE_FULL;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @return array|null
75 75
      */
76
-    private static function createCriteria(array $columns, array $searchTerms, string $operand, int $mode): ?array
76
+    private static function createCriteria(array $columns, array $searchTerms, string $operand, int $mode): ? array
77 77
     {
78 78
         $iteratorTerm = self::getTermIterator($columns, $mode);
79 79
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
          *
114 114
          * @return array
115 115
          */
116
-        $iteratorTerm = function (string $term) use ($columns, $mode): ?array {
116
+        $iteratorTerm = function (string $term) use ($columns, $mode): ? array {
117 117
             return \count($columns) ? \array_map(self::getColumnIterator($term, $mode), $columns) : null;
118 118
         };
119 119
 
Please login to merge, or discard this patch.
src/Form/Type/Traits/AddBasicFieldToForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Form/Type/Traits/AddBasicFieldToForm.php
5 5
  *
Please login to merge, or discard this patch.
src/Rest/RequestHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      *
188 188
      * @throws \Symfony\Component\HttpKernel\Exception\HttpException
189 189
      */
190
-    private static function determineSearchTerms(string $search): ?array
190
+    private static function determineSearchTerms(string $search): ? array
191 191
     {
192 192
         try {
193 193
             $searchTerms = JSON::decode($search, true);
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      */
254 254
     private static function getIterator(array &$output): \Closure
255 255
     {
256
-        return function (string &$value, $key) use (&$output) {
256
+        return function (string&$value, $key) use (&$output) {
257 257
             $order = \in_array(mb_strtoupper($value), ['ASC', 'DESC'], true) ? mb_strtoupper($value) : 'ASC';
258 258
             $column = \is_string($key) ? $key : $value;
259 259
 
Please login to merge, or discard this patch.
src/Rest/Describer/ApiDocDescriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      * @param array $annotations
173 173
      * @param bool  $disabled
174 174
      */
175
-    private function isRestApiDocDisabled(Route $route, array $annotations, bool &$disabled)
175
+    private function isRestApiDocDisabled(Route $route, array $annotations, bool&$disabled)
176 176
     {
177 177
         foreach ($annotations as $annotation) {
178 178
             if ($annotation instanceof RestApiDoc && $annotation->disabled) {
Please login to merge, or discard this patch.