Passed
Push — master ( ecaff5...98df6c )
by Joao
13:38 queued 15s
created
src/Rest/DummyRest.php 2 patches
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,6 @@  discard block
 block discarded – undo
163 163
      *           mediaType="application/json",
164 164
      *           @OA\Schema(
165 165
      *             
166
-
167 166
      *             @OA\Property(property="field", type="string", format="string", nullable=true)
168 167
      *           )
169 168
      *         )
@@ -175,7 +174,6 @@  discard block
 block discarded – undo
175 174
      *           mediaType="application/json",
176 175
      *           @OA\Schema(
177 176
      *             required={ "id" },
178
-
179 177
      *             @OA\Property(property="id", type="integer", format="int32")
180 178
      *           )
181 179
      *         )
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
         $dummyRepo = Psr11::container()->get(DummyRepository::class);
205 205
         $dummyRepo->save($model);
206 206
 
207
-        $response->write([ "id" => $model->getId()]);
207
+        $response->write(["id" => $model->getId()]);
208 208
     }
209 209
 
210 210
 
Please login to merge, or discard this patch.
src/Rest/DummyHexRest.php 2 patches
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,6 @@  discard block
 block discarded – undo
163 163
      *           mediaType="application/json",
164 164
      *           @OA\Schema(
165 165
      *             
166
-
167 166
      *             @OA\Property(property="field", type="string", format="string", nullable=true)
168 167
      *           )
169 168
      *         )
@@ -175,7 +174,6 @@  discard block
 block discarded – undo
175 174
      *           mediaType="application/json",
176 175
      *           @OA\Schema(
177 176
      *             required={ "id" },
178
-
179 177
      *             @OA\Property(property="id", type="string", format="string")
180 178
      *           )
181 179
      *         )
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
         $dummyHexRepo = Psr11::container()->get(DummyHexRepository::class);
205 205
         $dummyHexRepo->save($model);
206 206
 
207
-        $response->write([ "id" => $model->getId()]);
207
+        $response->write(["id" => $model->getId()]);
208 208
     }
209 209
 
210 210
 
Please login to merge, or discard this patch.
src/Util/HexUuidLiteral.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct($value)
10 10
     {
11
-        parent::__construct("X'" . str_replace("-", "", $value) . "'");
11
+        parent::__construct("X'".str_replace("-", "", $value)."'");
12 12
     }
13 13
 
14 14
     public static function getUuidFromLiteral($literal)
15 15
     {
16 16
         $value = $literal->__toString();
17
-        $value = substr($value, 2, 8) . "-" . substr($value, 10, 4) . "-" . substr($value, 14, 4) . "-" . substr($value, 18, 4) . "-" . substr($value, 22, 12);
17
+        $value = substr($value, 2, 8)."-".substr($value, 10, 4)."-".substr($value, 14, 4)."-".substr($value, 18, 4)."-".substr($value, 22, 12);
18 18
         return $value;
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Repository/BaseRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $query = Query::getInstance()
72 72
             ->table($this->repository->getMapper()->getTable())
73
-            ->limit($page*$size, $size);
73
+            ->limit($page * $size, $size);
74 74
 
75 75
         if (!empty($orderBy)) {
76 76
             if (!is_array($orderBy)) {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $query = Query::getInstance()
101 101
             ->table($tableName)
102
-            ->limit($page*$size, $size);
102
+            ->limit($page * $size, $size);
103 103
 
104 104
         if (!empty($orderBy)) {
105 105
             if (!is_array($orderBy)) {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     protected function getClosureNewUUID()
129 129
     {
130
-        return new Literal("X'" . $this->repository->getDbDriver()->getScalar("SELECT hex(uuid_to_bin(uuid()))") . "'");
130
+        return new Literal("X'".$this->repository->getDbDriver()->getScalar("SELECT hex(uuid_to_bin(uuid()))")."'");
131 131
     }
132 132
 
133 133
     public static function getUuid()
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     protected function setClosureFixBinaryUUID($mapper, $pkFieldName = 'id', $modelField = 'uuid')
145 145
     {
146 146
         $mapper->addFieldMapping(FieldMapping::create($pkFieldName)
147
-            ->withUpdateFunction(function ($value, $instance) {
147
+            ->withUpdateFunction(function($value, $instance) {
148 148
                 if (empty($value)) {
149 149
                     return null;
150 150
                 }
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
                 }
154 154
                 return $value;
155 155
             })
156
-            ->withSelectFunction(function ($value, $instance) use ($modelField) {
157
-                return str_replace('-', '', $instance->{'get' . $modelField}());
156
+            ->withSelectFunction(function($value, $instance) use ($modelField) {
157
+                return str_replace('-', '', $instance->{'get'.$modelField}());
158 158
             })
159 159
         );
160 160
     }
Please login to merge, or discard this patch.
src/Repository/DummyHexRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             'dummyhex',
26 26
             'id'
27 27
         );
28
-        $mapper->withPrimaryKeySeedFunction(function () {
28
+        $mapper->withPrimaryKeySeedFunction(function() {
29 29
             return $this->getClosureNewUUID();
30 30
         });
31 31
 
Please login to merge, or discard this patch.