@@ -297,7 +297,7 @@ |
||
| 297 | 297 | /** |
| 298 | 298 | * save the updated runtime config to disk |
| 299 | 299 | * |
| 300 | - * @param object $log |
|
| 300 | + * @param \DataSift\Storyplayer\PlayerLib\Action_LogItem $log |
|
| 301 | 301 | * the currently active logger |
| 302 | 302 | * @return void |
| 303 | 303 | */ |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $table = RuntimeTable::fromRuntimeTable($tableName)->getTable(); |
| 75 | 75 | |
| 76 | 76 | // make sure we don't have a duplicate entry |
| 77 | - if (isset($table->$key)){ |
|
| 77 | + if (isset($table->$key)) { |
|
| 78 | 78 | $msg = "table already contains item '{$key}'"; |
| 79 | 79 | $log->endAction($msg); |
| 80 | 80 | throw Exceptions::newActionFailedException(__METHOD__, $msg); |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | // make sure we don't have a duplicate entry |
| 202 | - if (isset($tables->$tableName->$group->$key)){ |
|
| 202 | + if (isset($tables->$tableName->$group->$key)) { |
|
| 203 | 203 | $msg = "table already contains an entry for '{$group}->{$key}'"; |
| 204 | 204 | $log->endAction($msg); |
| 205 | 205 | throw Exceptions::newActionFailedException(__METHOD__, $msg); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $table = RuntimeTable::fromRuntimeTable($tableName)->getTable(); |
| 75 | 75 | |
| 76 | 76 | // make sure we don't have a duplicate entry |
| 77 | - if (isset($table->$key)){ |
|
| 77 | + if (isset($table->$key)) { |
|
| 78 | 78 | $msg = "table already contains item '{$key}'"; |
| 79 | 79 | $log->endAction($msg); |
| 80 | 80 | throw Exceptions::newActionFailedException(__METHOD__, $msg); |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | // make sure we don't have a duplicate entry |
| 202 | - if (isset($tables->$tableName->$group->$key)){ |
|
| 202 | + if (isset($tables->$tableName->$group->$key)) { |
|
| 203 | 203 | $msg = "table already contains an entry for '{$group}->{$key}'"; |
| 204 | 204 | $log->endAction($msg); |
| 205 | 205 | throw Exceptions::newActionFailedException(__METHOD__, $msg); |