File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static function fileToArray($file) {
6565
6666 $ error = self ::_jsonLastError ();
6767
68- return (! $ array || isset ($ error ['error-code ' ])) ? false : $ array ;
68+ return $ array=== false || isset ($ error ['error-code ' ]) ? false : $ array ;
6969 }
7070
7171 /**
@@ -91,13 +91,13 @@ private static function _createDirectory($file) {
9191
9292 $ message = 'Could not create directory in ' ;
9393
94- throw new JsonException ($ message . ' ' . $ path, 605 );
94+ throw new JsonException ($ message . ' ' . $ path );
9595 }
9696 }
9797 }
9898
9999 /**
100- * Create directory recursively .
100+ * Save file .
101101 *
102102 * @since 1.1.3
103103 *
@@ -114,7 +114,7 @@ private static function _saveFile($file, $json) {
114114
115115 $ message = 'Could not create file in ' ;
116116
117- throw new JsonException ($ message . ' ' . $ file, 606 );
117+ throw new JsonException ($ message . ' ' . $ file );
118118 }
119119 }
120120
You can’t perform that action at this time.
0 commit comments