applying patch based on StyleCI ruleset

This commit is contained in:
El RIDO 2016-10-29 10:24:08 +02:00
parent c8b1296929
commit 1f46823942
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
33 changed files with 430 additions and 452 deletions

View file

@ -9,7 +9,6 @@
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 1.0
*/
namespace PrivateBin;
/**
@ -31,7 +30,7 @@ class Sjcl
*/
public static function isValid($encoded)
{
$accepted_keys = array('iv','v','iter','ks','ts','mode','adata','cipher','salt','ct');
$accepted_keys = array('iv', 'v', 'iter', 'ks', 'ts', 'mode', 'adata', 'cipher', 'salt', 'ct');
// Make sure content is valid json
$decoded = json_decode($encoded);