Completed
Push — master ( d0d98a...1dda5a )
by Russell
02:46
created
code/models/fieldtypes/JSONText.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
 
178 178
     /**
179 179
      * @param array $value
180
-     * @return mixed null|string
180
+     * @return string null|string
181 181
      */
182 182
     public function toJson($value)
183 183
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
 
227 227
         $flattened = iterator_to_array($data, true);
228 228
         return $this->returnAsType([
229
-                array_keys($flattened)[count($flattened) -1] => array_values($flattened)[count($flattened) -1]
229
+                array_keys($flattened)[count($flattened)-1] => array_values($flattened)[count($flattened)-1]
230 230
             ]);
231 231
     }
232 232
 
Please login to merge, or discard this patch.