Test Failed
Push — master ( 1e9ebe...d51fdb )
by Joao
06:34
created
src/Dataset/JsonDataset.php 1 patch
Switch Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -23,27 +23,27 @@
 block discarded – undo
23 23
 
24 24
         $lastError = json_last_error();
25 25
         switch ($lastError) {
26
-            case JSON_ERROR_NONE:
27
-                $lastErrorDesc = 'No errors';
28
-                break;
29
-            case JSON_ERROR_DEPTH:
30
-                $lastErrorDesc = 'Maximum stack depth exceeded';
31
-                break;
32
-            case JSON_ERROR_STATE_MISMATCH:
33
-                $lastErrorDesc = 'Underflow or the modes mismatch';
34
-                break;
35
-            case JSON_ERROR_CTRL_CHAR:
36
-                $lastErrorDesc = 'Unexpected control character found';
37
-                break;
38
-            case JSON_ERROR_SYNTAX:
39
-                $lastErrorDesc = 'Syntax error, malformed JSON';
40
-                break;
41
-            case JSON_ERROR_UTF8:
42
-                $lastErrorDesc = 'Malformed UTF-8 characters, possibly incorrectly encoded';
43
-                break;
44
-            default:
45
-                $lastErrorDesc = 'Unknown error';
46
-                break;
26
+        case JSON_ERROR_NONE:
27
+            $lastErrorDesc = 'No errors';
28
+            break;
29
+        case JSON_ERROR_DEPTH:
30
+            $lastErrorDesc = 'Maximum stack depth exceeded';
31
+            break;
32
+        case JSON_ERROR_STATE_MISMATCH:
33
+            $lastErrorDesc = 'Underflow or the modes mismatch';
34
+            break;
35
+        case JSON_ERROR_CTRL_CHAR:
36
+            $lastErrorDesc = 'Unexpected control character found';
37
+            break;
38
+        case JSON_ERROR_SYNTAX:
39
+            $lastErrorDesc = 'Syntax error, malformed JSON';
40
+            break;
41
+        case JSON_ERROR_UTF8:
42
+            $lastErrorDesc = 'Malformed UTF-8 characters, possibly incorrectly encoded';
43
+            break;
44
+        default:
45
+            $lastErrorDesc = 'Unknown error';
46
+            break;
47 47
         }
48 48
 
49 49
         if ($lastError != JSON_ERROR_NONE) {
Please login to merge, or discard this patch.
src/Store/MongoDbDriver.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param $idDocument
97
-     * @param null $collection
97
+     * @param string $collection
98 98
      * @return \ByJG\AnyDataset\NoSqlDocument|null
99 99
      * @throws \Exception
100 100
      * @throws \MongoDB\Driver\Exception\Exception
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     /**
116 116
      * @param \ByJG\AnyDataset\Dataset\IteratorFilter $filter
117
-     * @param null $collection
117
+     * @param null|string $collection
118 118
      * @return \ByJG\AnyDataset\NoSqlDocument[]|null
119 119
      * @throws \Exception
120 120
      * @throws \MongoDB\Driver\Exception\Exception
Please login to merge, or discard this patch.