@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $poolOffset = $this->poolOffset; |
| 79 | 79 | |
| 80 | - if ( ! $this->exists($poolOffset)) { |
|
| 80 | + if (!$this->exists($poolOffset)) { |
|
| 81 | 81 | $poolOffset = 'default'; |
| 82 | 82 | } |
| 83 | 83 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function delete($key) |
| 156 | 156 | { |
| 157 | - return (bool)$this->deleteItem($key); |
|
| 157 | + return (bool) $this->deleteItem($key); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | // ------------------------------------------------------------------------ |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | foreach ($keys as $key) { |
| 202 | 202 | if ($this->exists($key)) { |
| 203 | - $result[ $key ] = $this->get($key, $default); |
|
| 203 | + $result[$key] = $this->get($key, $default); |
|
| 204 | 204 | } |
| 205 | 205 | } |
| 206 | 206 | |
@@ -308,11 +308,11 @@ discard block |
||
| 308 | 308 | |
| 309 | 309 | foreach ($values as $key => $value) { |
| 310 | 310 | if ($this->set($key, $value, $ttl)) { |
| 311 | - $result[ $key ] = true; |
|
| 311 | + $result[$key] = true; |
|
| 312 | 312 | } |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | - return (bool)count($result) == count($values); |
|
| 315 | + return (bool) count($result) == count($values); |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | // ------------------------------------------------------------------------ |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | */ |
| 370 | 370 | public function deleteMultiple($keys) |
| 371 | 371 | { |
| 372 | - return (bool)$this->deleteItems($keys); |
|
| 372 | + return (bool) $this->deleteItems($keys); |
|
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | // ------------------------------------------------------------------------ |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function __construct() |
| 27 | 27 | { |
| 28 | 28 | $config = config()->get('logger'); |
| 29 | - $config[ 'path' ] = PATH_CACHE . 'log' . DIRECTORY_SEPARATOR; |
|
| 29 | + $config['path'] = PATH_CACHE.'log'.DIRECTORY_SEPARATOR; |
|
| 30 | 30 | |
| 31 | 31 | parent::__construct(new Config($config)); |
| 32 | 32 | } |
@@ -38,12 +38,12 @@ |
||
| 38 | 38 | $debugIpAddresses = config('ipAddresses')->offsetGet('debug'); |
| 39 | 39 | |
| 40 | 40 | if (in_array($clientIpAddress, $debugIpAddresses)) { |
| 41 | - $_ENV[ 'DEBUG_STAGE' ] = 'DEVELOPER'; |
|
| 41 | + $_ENV['DEBUG_STAGE'] = 'DEVELOPER'; |
|
| 42 | 42 | |
| 43 | 43 | error_reporting(-1); |
| 44 | 44 | ini_set('display_errors', 1); |
| 45 | 45 | |
| 46 | - if (isset($_REQUEST[ 'PHP_INFO' ])) { |
|
| 46 | + if (isset($_REQUEST['PHP_INFO'])) { |
|
| 47 | 47 | phpinfo(); |
| 48 | 48 | exit(EXIT_SUCCESS); |
| 49 | 49 | } |
@@ -226,9 +226,9 @@ discard block |
||
| 226 | 226 | if (is_numeric(key($code))) { |
| 227 | 227 | $message = reset($code); |
| 228 | 228 | $code = key($code); |
| 229 | - } elseif (isset($code[ 'code' ])) { |
|
| 230 | - $code = $code[ 'code' ]; |
|
| 231 | - $message = $code[ 'message' ]; |
|
| 229 | + } elseif (isset($code['code'])) { |
|
| 230 | + $code = $code['code']; |
|
| 231 | + $message = $code['message']; |
|
| 232 | 232 | } |
| 233 | 233 | } |
| 234 | 234 | |
@@ -271,17 +271,17 @@ discard block |
||
| 271 | 271 | // set php runtime to unlimited |
| 272 | 272 | set_time_limit(0); |
| 273 | 273 | |
| 274 | - $longPoolingCacheKey = 'long-pooling-' . session()->get('id'); |
|
| 274 | + $longPoolingCacheKey = 'long-pooling-'.session()->get('id'); |
|
| 275 | 275 | $longPoolingCacheData = null; |
| 276 | 276 | |
| 277 | - if ( ! cache()->hasItem($longPoolingCacheKey)) { |
|
| 277 | + if (!cache()->hasItem($longPoolingCacheKey)) { |
|
| 278 | 278 | cache()->save(new Item($longPoolingCacheKey, $data)); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | // main loop |
| 282 | 282 | while (true) { |
| 283 | 283 | // if ajax request has send a timestamp, then $lastCallTimestamp = timestamp, else $last_call = null |
| 284 | - $lastCallTimestamp = (int)input()->getPost('last_call_timestamp'); |
|
| 284 | + $lastCallTimestamp = (int) input()->getPost('last_call_timestamp'); |
|
| 285 | 285 | |
| 286 | 286 | // PHP caches file data, like requesting the size of a file, by default. clearstatcache() clears that cache |
| 287 | 287 | clearstatcache(); |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | $longPoolingCacheMetadata = $longPoolingCacheData->getMetadata(); |
| 295 | 295 | |
| 296 | 296 | // if no timestamp delivered via ajax or data.txt has been changed SINCE last ajax timestamp |
| 297 | - if ($lastCallTimestamp == null || $longPoolingCacheMetadata[ 'ctime' ] > $lastCallTimestamp) { |
|
| 297 | + if ($lastCallTimestamp == null || $longPoolingCacheMetadata['ctime'] > $lastCallTimestamp) { |
|
| 298 | 298 | output()->send([ |
| 299 | 299 | 'timestamp' => $longPoolingCacheMetadata, |
| 300 | 300 | 'data' => $data, |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function index($code = 500) |
| 33 | 33 | { |
| 34 | - $codeString = $code . '_' . error_code_string($code); |
|
| 34 | + $codeString = $code.'_'.error_code_string($code); |
|
| 35 | 35 | |
| 36 | 36 | if (presenter()->theme->use === true) { |
| 37 | 37 | presenter()->theme->setLayout('error'); |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | view('error-code', [ |
| 47 | 47 | 'code' => $code, |
| 48 | - 'title' => language()->getLine($codeString . '_TITLE'), |
|
| 49 | - 'message' => language()->getLine($codeString . '_MESSAGE'), |
|
| 48 | + 'title' => language()->getLine($codeString.'_TITLE'), |
|
| 49 | + 'message' => language()->getLine($codeString.'_MESSAGE'), |
|
| 50 | 50 | ]); |
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | \ No newline at end of file |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $item = new SplArrayObject(); |
| 52 | 52 | foreach ($fields as $field) { |
| 53 | 53 | if ($row->offsetExists($field)) { |
| 54 | - $item[ $field ] = $row->offsetGet($field); |
|
| 54 | + $item[$field] = $row->offsetGet($field); |
|
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | $chunks = array_chunk($this->storage, $entries); |
| 78 | 78 | $offset = $page - 1; |
| 79 | 79 | |
| 80 | - if (isset($chunks[ $offset ])) { |
|
| 81 | - $result = new ArrayIterator($chunks[ $offset ]); |
|
| 80 | + if (isset($chunks[$offset])) { |
|
| 81 | + $result = new ArrayIterator($chunks[$offset]); |
|
| 82 | 82 | |
| 83 | 83 | if (empty($fields)) { |
| 84 | 84 | return $this->result = $result; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $item = new SplArrayObject(); |
| 88 | 88 | foreach ($fields as $field) { |
| 89 | 89 | if ($row->offsetExists($field)) { |
| 90 | - $item[ $field ] = $row->offsetGet($field); |
|
| 90 | + $item[$field] = $row->offsetGet($field); |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $counter = 0; |
| 262 | 262 | foreach ($this->storage as $row) { |
| 263 | 263 | if ($row->offsetExists($field)) { |
| 264 | - if ( ! in_array($row->offsetGet($field), $notInCriteria)) { |
|
| 264 | + if (!in_array($row->offsetGet($field), $notInCriteria)) { |
|
| 265 | 265 | $result[] = $row; |
| 266 | 266 | $counter++; |
| 267 | 267 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
| 37 | - if ( ! empty($this->file)) { |
|
| 37 | + if (!empty($this->file)) { |
|
| 38 | 38 | $extension = pathinfo($this->file, PATHINFO_EXTENSION); |
| 39 | 39 | |
| 40 | 40 | switch ($extension) { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $first = reset($this->storage); |
| 52 | - if ( ! isset($first[ $this->primaryKey ])) { |
|
| 52 | + if (!isset($first[$this->primaryKey])) { |
|
| 53 | 53 | $keys = $first->getKeys(); |
| 54 | 54 | $this->primaryKey = reset($keys); |
| 55 | 55 | } |
@@ -78,57 +78,57 @@ |
||
| 78 | 78 | |
| 79 | 79 | $timestamp = $this->isUnixTimestamp === true ? strtotime(date('Y-m-d H:i:s')) : date('Y-m-d H:i:s'); |
| 80 | 80 | |
| 81 | - if ( ! isset($sets[ 'record_status' ])) { |
|
| 82 | - $sets[ 'record_status' ] = $this->recordStatus; |
|
| 81 | + if (!isset($sets['record_status'])) { |
|
| 82 | + $sets['record_status'] = $this->recordStatus; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if (empty($this->primary_keys)) { |
| 86 | 86 | $primary_key = isset($this->primary_key) ? $this->primary_key : 'id'; |
| 87 | 87 | |
| 88 | - if (empty($sets[ $primary_key ])) { |
|
| 89 | - if ( ! isset($sets[ 'record_create_user' ])) { |
|
| 90 | - $sets[ 'record_create_user' ] = $this->recordUser; |
|
| 88 | + if (empty($sets[$primary_key])) { |
|
| 89 | + if (!isset($sets['record_create_user'])) { |
|
| 90 | + $sets['record_create_user'] = $this->recordUser; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - if ( ! isset($sets[ 'record_create_timestamp' ])) { |
|
| 94 | - $sets[ 'record_create_timestamp' ] = $timestamp; |
|
| 93 | + if (!isset($sets['record_create_timestamp'])) { |
|
| 94 | + $sets['record_create_timestamp'] = $timestamp; |
|
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | } else { |
| 98 | 98 | foreach ($this->primary_keys as $primary_key) { |
| 99 | - if (empty($sets[ $primary_key ])) { |
|
| 100 | - if ( ! isset($sets[ 'record_create_user' ])) { |
|
| 101 | - $sets[ 'record_create_user' ] = $this->recordUser; |
|
| 99 | + if (empty($sets[$primary_key])) { |
|
| 100 | + if (!isset($sets['record_create_user'])) { |
|
| 101 | + $sets['record_create_user'] = $this->recordUser; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - if ( ! isset($sets[ 'record_create_timestamp' ])) { |
|
| 105 | - $sets[ 'record_create_timestamp' ] = $timestamp; |
|
| 104 | + if (!isset($sets['record_create_timestamp'])) { |
|
| 105 | + $sets['record_create_timestamp'] = $timestamp; |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - $sets[ 'record_update_user' ] = $this->recordUser; |
|
| 111 | + $sets['record_update_user'] = $this->recordUser; |
|
| 112 | 112 | |
| 113 | - if ( ! isset($sets[ 'record_update_timestamp' ])) { |
|
| 114 | - $sets[ 'record_update_timestamp' ] = $timestamp; |
|
| 113 | + if (!isset($sets['record_update_timestamp'])) { |
|
| 114 | + $sets['record_update_timestamp'] = $timestamp; |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | protected function updateRecordSets(array &$sets) |
| 119 | 119 | { |
| 120 | - $sets[ 'record_status' ] = $this->recordStatus; |
|
| 121 | - $sets[ 'record_update_user' ] = $this->recordUser; |
|
| 120 | + $sets['record_status'] = $this->recordStatus; |
|
| 121 | + $sets['record_update_user'] = $this->recordUser; |
|
| 122 | 122 | |
| 123 | 123 | $timestamp = $this->isUnixTimestamp === true ? strtotime(date('Y-m-d H:i:s')) : date('Y-m-d H:i:s'); |
| 124 | 124 | |
| 125 | - if ( ! isset($sets[ 'record_update_timestamp' ])) { |
|
| 126 | - $sets[ 'record_update_timestamp' ] = $timestamp; |
|
| 125 | + if (!isset($sets['record_update_timestamp'])) { |
|
| 126 | + $sets['record_update_timestamp'] = $timestamp; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | if ($this->recordStatus === 'PUBLISH') { |
| 130 | - $sets[ 'record_delete_timestamp' ] = null; |
|
| 131 | - $sets[ 'record_delete_user' ] = null; |
|
| 130 | + $sets['record_delete_timestamp'] = null; |
|
| 131 | + $sets['record_delete_user'] = null; |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | 135 | \ No newline at end of file |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | if (empty($where)) { |
| 83 | 83 | if (empty($this->primaryKeys)) { |
| 84 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 84 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 85 | 85 | } else { |
| 86 | 86 | foreach ($this->primaryKeys as $primaryKey) { |
| 87 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 87 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $collection = isset($collection) ? $collection : $this->collection; |
| 119 | 119 | |
| 120 | 120 | if (method_exists($this, 'insertRecordSets')) { |
| 121 | - foreach($sets as $set) { |
|
| 121 | + foreach ($sets as $set) { |
|
| 122 | 122 | $this->insertRecordSets($set); |
| 123 | 123 | } |
| 124 | 124 | } |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | $where = []; |
| 149 | 149 | if (empty($this->primaryKeys)) { |
| 150 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 151 | - $this->qb->where($primaryKey, $sets[ $primaryKey ]); |
|
| 150 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 151 | + $this->qb->where($primaryKey, $sets[$primaryKey]); |
|
| 152 | 152 | } else { |
| 153 | 153 | foreach ($this->primaryKeys as $primaryKey) { |
| 154 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 154 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $this->primaryKeys = []; |
| 161 | 161 | |
| 162 | 162 | if (method_exists($this, 'updateRecordSets')) { |
| 163 | - foreach($sets as $set) { |
|
| 163 | + foreach ($sets as $set) { |
|
| 164 | 164 | $this->updateRecordSets($set); |
| 165 | 165 | } |
| 166 | 166 | } |
@@ -199,19 +199,19 @@ discard block |
||
| 199 | 199 | $where = []; |
| 200 | 200 | |
| 201 | 201 | if (empty($this->primaryKeys)) { |
| 202 | - $where[ $primaryKey ] = $id; |
|
| 203 | - $sets[ $primaryKey ] = $id; |
|
| 202 | + $where[$primaryKey] = $id; |
|
| 203 | + $sets[$primaryKey] = $id; |
|
| 204 | 204 | } elseif (is_array($id)) { |
| 205 | 205 | foreach ($this->primaryKeys as $primaryKey) { |
| 206 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 207 | - $sets[ $primaryKey ] = $id[ $primaryKey ]; |
|
| 206 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 207 | + $sets[$primaryKey] = $id[$primaryKey]; |
|
| 208 | 208 | } |
| 209 | 209 | } else { |
| 210 | 210 | foreach ($this->primaryKeys as $primaryKey) { |
| 211 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 211 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - $sets[ reset($this->primaryKeys) ] = $id; |
|
| 214 | + $sets[reset($this->primaryKeys)] = $id; |
|
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | // Reset Primary Keys |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $affectedRows = []; |
| 262 | 262 | |
| 263 | 263 | foreach ($ids as $id) { |
| 264 | - $affectedRows[ $id ] = $this->trash($id); |
|
| 264 | + $affectedRows[$id] = $this->trash($id); |
|
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | return $affectedRows; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | $affectedRows = []; |
| 275 | 275 | |
| 276 | 276 | foreach ($ids as $id) { |
| 277 | - $affectedRows[ $id ] = $this->trashBy($id, $where, $collection); |
|
| 277 | + $affectedRows[$id] = $this->trashBy($id, $where, $collection); |
|
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | return $affectedRows; |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | |
| 285 | 285 | public function delete($id, $force = false, $collection = null) |
| 286 | 286 | { |
| 287 | - if ((isset($collection) AND is_bool($collection)) OR ! isset($collection)) { |
|
| 287 | + if ((isset($collection) AND is_bool($collection)) OR !isset($collection)) { |
|
| 288 | 288 | $collection = $this->collection; |
| 289 | 289 | } |
| 290 | 290 | |
@@ -292,13 +292,13 @@ discard block |
||
| 292 | 292 | |
| 293 | 293 | $where = []; |
| 294 | 294 | if (empty($this->primaryKeys)) { |
| 295 | - $where[ $primaryKey ] = $id; |
|
| 295 | + $where[$primaryKey] = $id; |
|
| 296 | 296 | } elseif (is_array($id)) { |
| 297 | 297 | foreach ($this->primaryKeys as $primaryKey) { |
| 298 | - $where[ $primaryKey ] = $id[ $primaryKey ]; |
|
| 298 | + $where[$primaryKey] = $id[$primaryKey]; |
|
| 299 | 299 | } |
| 300 | 300 | } else { |
| 301 | - $where[ reset($this->primaryKeys) ] = $id; |
|
| 301 | + $where[reset($this->primaryKeys)] = $id; |
|
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | // Reset Primary Keys |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | $affectedRows = []; |
| 337 | 337 | |
| 338 | 338 | foreach ($ids as $id) { |
| 339 | - $affectedRows[ $id ] = $this->delete($id, $force, $collection); |
|
| 339 | + $affectedRows[$id] = $this->delete($id, $force, $collection); |
|
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | return $affectedRows; |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | $affectedRows = []; |
| 348 | 348 | |
| 349 | 349 | foreach ($ids as $id) { |
| 350 | - $affectedRows[ $id ] = $this->deleteBy($id, $where, $force, $collection); |
|
| 350 | + $affectedRows[$id] = $this->deleteBy($id, $where, $force, $collection); |
|
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | return $affectedRows; |
@@ -364,19 +364,19 @@ discard block |
||
| 364 | 364 | $where = []; |
| 365 | 365 | |
| 366 | 366 | if (empty($this->primaryKeys)) { |
| 367 | - $where[ $primaryKey ] = $id; |
|
| 368 | - $sets[ $primaryKey ] = $id; |
|
| 367 | + $where[$primaryKey] = $id; |
|
| 368 | + $sets[$primaryKey] = $id; |
|
| 369 | 369 | } elseif (is_array($id)) { |
| 370 | 370 | foreach ($this->primaryKeys as $primaryKey) { |
| 371 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 372 | - $sets[ $primaryKey ] = $id[ $primaryKey ]; |
|
| 371 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 372 | + $sets[$primaryKey] = $id[$primaryKey]; |
|
| 373 | 373 | } |
| 374 | 374 | } else { |
| 375 | 375 | foreach ($this->primaryKeys as $primaryKey) { |
| 376 | - $where[ $primaryKey ] = $sets[ $primaryKey ]; |
|
| 376 | + $where[$primaryKey] = $sets[$primaryKey]; |
|
| 377 | 377 | } |
| 378 | 378 | |
| 379 | - $sets[ reset($this->primaryKeys) ] = $id; |
|
| 379 | + $sets[reset($this->primaryKeys)] = $id; |
|
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | // Reset Primary Keys |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | $affectedRows = []; |
| 420 | 420 | |
| 421 | 421 | foreach ($ids as $id) { |
| 422 | - $affectedRows[ $id ] = $this->publish($id, $collection); |
|
| 422 | + $affectedRows[$id] = $this->publish($id, $collection); |
|
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | return $affectedRows; |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | $affectedRows = []; |
| 433 | 433 | |
| 434 | 434 | foreach ($ids as $id) { |
| 435 | - $affectedRows[ $id ] = $this->publishBy($id, $where, $collection); |
|
| 435 | + $affectedRows[$id] = $this->publishBy($id, $where, $collection); |
|
| 436 | 436 | } |
| 437 | 437 | |
| 438 | 438 | return $affectedRows; |