@@ -78,7 +78,7 @@ |
||
78 | 78 | { |
79 | 79 | if(isset($res['extended']) && isset($res['extended']['jpegphoto'])) |
80 | 80 | { |
81 | - $res['extended']['jpegphoto']=true; |
|
81 | + $res['extended']['jpegphoto'] = true; |
|
82 | 82 | } |
83 | 83 | FlipSession::setVar('AuthMethod', get_class($this->methods[$i])); |
84 | 84 | FlipSession::setVar('AuthData', $res); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $objCount = count($res); |
49 | 49 | for($i = 0; $i < $objCount; $i++) |
50 | 50 | { |
51 | - $res[$i] = new $this->className($res[$i]); |
|
51 | + $res[$i] = new $this->className($res[$i]); |
|
52 | 52 | } |
53 | 53 | return $res; |
54 | 54 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | return $this->dataTable->create($data); |
35 | 35 | } |
36 | 36 | |
37 | - public function read($filter=false, $select=false, $count=false, $skip=false, $sort=false, $params=false, $returnObj=false) |
|
37 | + public function read($filter = false, $select = false, $count = false, $skip = false, $sort = false, $params = false, $returnObj = false) |
|
38 | 38 | { |
39 | 39 | $res = $this->dataTable->read($filter, $select, $count, $skip, $sort, $params); |
40 | 40 | if($res === false) |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return $this->dataTable->delete($filter); |
68 | 68 | } |
69 | 69 | |
70 | - public function count($filter=false) |
|
70 | + public function count($filter = false) |
|
71 | 71 | { |
72 | 72 | return $this->dataTable->count($filter); |
73 | 73 | } |
@@ -141,9 +141,12 @@ |
||
141 | 141 | { |
142 | 142 | $namespace = $this->db_name.'.'.$collectionName; |
143 | 143 | $dbWrite = new \MongoDB\Driver\BulkWrite(); |
144 | - try { |
|
144 | + try |
|
145 | + { |
|
145 | 146 | $dbWrite->update($criteria, $new_object, $options); |
146 | - } catch(\MongoDB\Driver\Exception\InvalidArgumentException $e) { |
|
147 | + } |
|
148 | + catch(\MongoDB\Driver\Exception\InvalidArgumentException $e) |
|
149 | + { |
|
147 | 150 | if(isset($new_object['$set'][''])) |
148 | 151 | { |
149 | 152 | unset($new_object['$set']['']); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | public function __construct($title) |
18 | 18 | { |
19 | - \Sentry\init(['dsn' => 'https://[email protected]/4283882' ]); |
|
19 | + \Sentry\init(['dsn' => 'https://[email protected]/4283882']); |
|
20 | 20 | $this->settings = \Settings::getInstance(); |
21 | 21 | $this->loader = new \Twig_Loader_Filesystem(dirname(__FILE__).'/../templates'); |
22 | 22 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $this->content['css'] = array($uri); |
108 | 108 | return; |
109 | 109 | } |
110 | - array_push($this->content['css'],$uri); |
|
110 | + array_push($this->content['css'], $uri); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $this->content['js'] = array($uri); |
123 | 123 | return; |
124 | 124 | } |
125 | - array_push($this->content['js'],$uri); |
|
125 | + array_push($this->content['js'], $uri); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | { |
176 | 176 | $data['menu'] = $submenu; |
177 | 177 | } |
178 | - $this->content['header']['right'] = array($name => $data)+$this->content['header']['right']; |
|
178 | + $this->content['header']['right'] = array($name => $data) + $this->content['header']['right']; |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | /** Notification that is green for success */ |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function setup($app) |
23 | 23 | { |
24 | - \Sentry\init(['dsn' => 'https://[email protected]/4283882' ]); |
|
24 | + \Sentry\init(['dsn' => 'https://[email protected]/4283882']); |
|
25 | 25 | return $app->any('[/]', $this); |
26 | 26 | } |
27 | 27 |