Completed
Push — master ( 81de48...3714b0 )
by Nate
04:22
created
src/Internal/TypeAdapter/BooleanTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?bool
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/IntegerTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?int
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ArrayTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function read(JsonReadable $reader): ?array
58 58
     {
59
-        if ($reader->peek() === JsonToken::NULL) {
59
+        if ($reader->peek() === JsonToken::null) {
60 60
             $reader->nextNull();
61 61
             return null;
62 62
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ReflectionTypeAdapter.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      */
97 97
     public function read(JsonReadable $reader)
98 98
     {
99
-        if ($reader->peek() === JsonToken::NULL) {
99
+        if ($reader->peek() === JsonToken::null) {
100 100
             $reader->nextNull();
101 101
             return null;
102 102
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
 
188 188
         $writer->beginObject();
189 189
 
190
-        $virtualProperty = $this->classMetadata->getAnnotation(VirtualProperty::class) ;
190
+        $virtualProperty = $this->classMetadata->getAnnotation(VirtualProperty::class);
191 191
         if ($virtualProperty !== null) {
192 192
             $writer->name($virtualProperty->getValue());
193 193
             $writer->beginObject();
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/FloatTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?float
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/StringTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?string
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/JsonReader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
      */
167 167
     public function nextNull(): void
168 168
     {
169
-        $this->expect(JsonToken::NULL);
169
+        $this->expect(JsonToken::null);
170 170
 
171 171
         $this->pop();
172 172
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/DateTimeTypeAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      * Read the next value, convert it to its type and return it
51 51
      *
52 52
      * @param JsonReadable $reader
53
-     * @return DateTimeInterface|null
53
+     * @return null|DateTime
54 54
      * @throws \Tebru\Gson\Exception\JsonSyntaxException If the DateTime could not be created from format
55 55
      */
56 56
     public function read(JsonReadable $reader): ?DateTimeInterface
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function read(JsonReadable $reader): ?DateTimeInterface
57 57
     {
58
-        if ($reader->peek() === JsonToken::NULL) {
58
+        if ($reader->peek() === JsonToken::null) {
59 59
             $reader->nextNull();
60 60
             return null;
61 61
         }
Please login to merge, or discard this patch.
src/GsonBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
      */
377 377
     public function setCacheDir(string $cacheDir): GsonBuilder
378 378
     {
379
-        $this->cacheDir = $cacheDir.'/gson';
379
+        $this->cacheDir = $cacheDir . '/gson';
380 380
 
381 381
         return $this;
382 382
     }
Please login to merge, or discard this patch.