@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
| 37 | 37 | } |
| 38 | - $whoops->pushHandler(function () { |
|
| 38 | + $whoops->pushHandler(function() { |
|
| 39 | 39 | Response::create('Uh oh, something broke internally.', Response::HTTP_INTERNAL_SERVER_ERROR)->send(); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Routes |
| 62 | 62 | */ |
| 63 | -$dispatcher = FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $r) { |
|
| 63 | +$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) { |
|
| 64 | 64 | $routes = require __DIR__ . '/routes.php'; |
| 65 | 65 | foreach ($routes as $route) { |
| 66 | 66 | $r->addRoute($route[0], $route[1], $route[2]); |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | |
| 525 | 525 | // use transaction because $criteria could contain info |
| 526 | 526 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 527 | - return $con->transaction(function () use ($con) { |
|
| 527 | + return $con->transaction(function() use ($con) { |
|
| 528 | 528 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 529 | 529 | $affectedRows += parent::doDeleteAll($con); |
| 530 | 530 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | |
| 560 | 560 | // use transaction because $criteria could contain info |
| 561 | 561 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 562 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 562 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 563 | 563 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 564 | 564 | |
| 565 | 565 | UserTableMap::removeInstanceFromPool($criteria); |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME); |
| 712 | 712 | } |
| 713 | 713 | |
| 714 | - $con->transaction(function () use ($con) { |
|
| 714 | + $con->transaction(function() use ($con) { |
|
| 715 | 715 | $deleteQuery = ChildUserQuery::create() |
| 716 | 716 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 717 | 717 | $ret = $this->preDelete($con); |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME); |
| 747 | 747 | } |
| 748 | 748 | |
| 749 | - return $con->transaction(function () use ($con) { |
|
| 749 | + return $con->transaction(function() use ($con) { |
|
| 750 | 750 | $isInsert = $this->isNew(); |
| 751 | 751 | $ret = $this->preSave($con); |
| 752 | 752 | if ($isInsert) { |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | * first dimension keys are the type constants |
| 98 | 98 | * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' |
| 99 | 99 | */ |
| 100 | - protected static $fieldNames = array ( |
|
| 101 | - self::TYPE_PHPNAME => array('Id', 'CreatedAt', 'UpdatedAt', ), |
|
| 102 | - self::TYPE_CAMELNAME => array('id', 'createdAt', 'updatedAt', ), |
|
| 103 | - self::TYPE_COLNAME => array(TaskTableMap::COL_ID, TaskTableMap::COL_CREATED_AT, TaskTableMap::COL_UPDATED_AT, ), |
|
| 104 | - self::TYPE_FIELDNAME => array('id', 'created_at', 'updated_at', ), |
|
| 105 | - self::TYPE_NUM => array(0, 1, 2, ) |
|
| 100 | + protected static $fieldNames = array( |
|
| 101 | + self::TYPE_PHPNAME => array('Id', 'CreatedAt', 'UpdatedAt',), |
|
| 102 | + self::TYPE_CAMELNAME => array('id', 'createdAt', 'updatedAt',), |
|
| 103 | + self::TYPE_COLNAME => array(TaskTableMap::COL_ID, TaskTableMap::COL_CREATED_AT, TaskTableMap::COL_UPDATED_AT,), |
|
| 104 | + self::TYPE_FIELDNAME => array('id', 'created_at', 'updated_at',), |
|
| 105 | + self::TYPE_NUM => array(0, 1, 2,) |
|
| 106 | 106 | ); |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -111,12 +111,12 @@ discard block |
||
| 111 | 111 | * first dimension keys are the type constants |
| 112 | 112 | * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 |
| 113 | 113 | */ |
| 114 | - protected static $fieldKeys = array ( |
|
| 115 | - self::TYPE_PHPNAME => array('Id' => 0, 'CreatedAt' => 1, 'UpdatedAt' => 2, ), |
|
| 116 | - self::TYPE_CAMELNAME => array('id' => 0, 'createdAt' => 1, 'updatedAt' => 2, ), |
|
| 117 | - self::TYPE_COLNAME => array(TaskTableMap::COL_ID => 0, TaskTableMap::COL_CREATED_AT => 1, TaskTableMap::COL_UPDATED_AT => 2, ), |
|
| 118 | - self::TYPE_FIELDNAME => array('id' => 0, 'created_at' => 1, 'updated_at' => 2, ), |
|
| 119 | - self::TYPE_NUM => array(0, 1, 2, ) |
|
| 114 | + protected static $fieldKeys = array( |
|
| 115 | + self::TYPE_PHPNAME => array('Id' => 0, 'CreatedAt' => 1, 'UpdatedAt' => 2,), |
|
| 116 | + self::TYPE_CAMELNAME => array('id' => 0, 'createdAt' => 1, 'updatedAt' => 2,), |
|
| 117 | + self::TYPE_COLNAME => array(TaskTableMap::COL_ID => 0, TaskTableMap::COL_CREATED_AT => 1, TaskTableMap::COL_UPDATED_AT => 2,), |
|
| 118 | + self::TYPE_FIELDNAME => array('id' => 0, 'created_at' => 1, 'updated_at' => 2,), |
|
| 119 | + self::TYPE_NUM => array(0, 1, 2,) |
|
| 120 | 120 | ); |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -395,8 +395,8 @@ discard block |
||
| 395 | 395 | $criteria = $criteria->buildCriteria(); // build Criteria from Task object |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | - if ($criteria->containsKey(TaskTableMap::COL_ID) && $criteria->keyContainsValue(TaskTableMap::COL_ID) ) { |
|
| 399 | - throw new PropelException('Cannot insert a value for auto-increment primary key ('.TaskTableMap::COL_ID.')'); |
|
| 398 | + if ($criteria->containsKey(TaskTableMap::COL_ID) && $criteria->keyContainsValue(TaskTableMap::COL_ID)) { |
|
| 399 | + throw new PropelException('Cannot insert a value for auto-increment primary key (' . TaskTableMap::COL_ID . ')'); |
|
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | |
| 406 | 406 | // use transaction because $criteria could contain info |
| 407 | 407 | // for more than one table (I guess, conceivably) |
| 408 | - return $con->transaction(function () use ($con, $query) { |
|
| 408 | + return $con->transaction(function() use ($con, $query) { |
|
| 409 | 409 | return $query->doInsert($con); |
| 410 | 410 | }); |
| 411 | 411 | } |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | |
| 525 | 525 | // use transaction because $criteria could contain info |
| 526 | 526 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 527 | - return $con->transaction(function () use ($con) { |
|
| 527 | + return $con->transaction(function() use ($con) { |
|
| 528 | 528 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 529 | 529 | $affectedRows += parent::doDeleteAll($con); |
| 530 | 530 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | |
| 560 | 560 | // use transaction because $criteria could contain info |
| 561 | 561 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 562 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 562 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 563 | 563 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 564 | 564 | |
| 565 | 565 | UserTableMap::removeInstanceFromPool($criteria); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class Test |
| 11 | 11 | { |
| 12 | - function run(){ |
|
| 12 | + function run() { |
|
| 13 | 13 | echo "test run"; |
| 14 | 14 | } |
| 15 | 15 | } |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | |
| 525 | 525 | // use transaction because $criteria could contain info |
| 526 | 526 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 527 | - return $con->transaction(function () use ($con) { |
|
| 527 | + return $con->transaction(function() use ($con) { |
|
| 528 | 528 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 529 | 529 | $affectedRows += parent::doDeleteAll($con); |
| 530 | 530 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | |
| 560 | 560 | // use transaction because $criteria could contain info |
| 561 | 561 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 562 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 562 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 563 | 563 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 564 | 564 | |
| 565 | 565 | UserTableMap::removeInstanceFromPool($criteria); |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME); |
| 712 | 712 | } |
| 713 | 713 | |
| 714 | - $con->transaction(function () use ($con) { |
|
| 714 | + $con->transaction(function() use ($con) { |
|
| 715 | 715 | $deleteQuery = ChildUserQuery::create() |
| 716 | 716 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 717 | 717 | $ret = $this->preDelete($con); |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME); |
| 747 | 747 | } |
| 748 | 748 | |
| 749 | - return $con->transaction(function () use ($con) { |
|
| 749 | + return $con->transaction(function() use ($con) { |
|
| 750 | 750 | $isInsert = $this->isNew(); |
| 751 | 751 | $ret = $this->preSave($con); |
| 752 | 752 | if ($isInsert) { |
@@ -102,12 +102,12 @@ discard block |
||
| 102 | 102 | * first dimension keys are the type constants |
| 103 | 103 | * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' |
| 104 | 104 | */ |
| 105 | - protected static $fieldNames = array ( |
|
| 106 | - self::TYPE_PHPNAME => array('Id', 'Name', 'Datecreate', 'Desc', ), |
|
| 107 | - self::TYPE_CAMELNAME => array('id', 'name', 'datecreate', 'desc', ), |
|
| 108 | - self::TYPE_COLNAME => array(SelfpriceTableMap::COL_ID, SelfpriceTableMap::COL_NAME, SelfpriceTableMap::COL_DATECREATE, SelfpriceTableMap::COL_DESC, ), |
|
| 109 | - self::TYPE_FIELDNAME => array('id', 'name', 'datecreate', 'desc', ), |
|
| 110 | - self::TYPE_NUM => array(0, 1, 2, 3, ) |
|
| 105 | + protected static $fieldNames = array( |
|
| 106 | + self::TYPE_PHPNAME => array('Id', 'Name', 'Datecreate', 'Desc',), |
|
| 107 | + self::TYPE_CAMELNAME => array('id', 'name', 'datecreate', 'desc',), |
|
| 108 | + self::TYPE_COLNAME => array(SelfpriceTableMap::COL_ID, SelfpriceTableMap::COL_NAME, SelfpriceTableMap::COL_DATECREATE, SelfpriceTableMap::COL_DESC,), |
|
| 109 | + self::TYPE_FIELDNAME => array('id', 'name', 'datecreate', 'desc',), |
|
| 110 | + self::TYPE_NUM => array(0, 1, 2, 3,) |
|
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -116,12 +116,12 @@ discard block |
||
| 116 | 116 | * first dimension keys are the type constants |
| 117 | 117 | * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 |
| 118 | 118 | */ |
| 119 | - protected static $fieldKeys = array ( |
|
| 120 | - self::TYPE_PHPNAME => array('Id' => 0, 'Name' => 1, 'Datecreate' => 2, 'Desc' => 3, ), |
|
| 121 | - self::TYPE_CAMELNAME => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3, ), |
|
| 122 | - self::TYPE_COLNAME => array(SelfpriceTableMap::COL_ID => 0, SelfpriceTableMap::COL_NAME => 1, SelfpriceTableMap::COL_DATECREATE => 2, SelfpriceTableMap::COL_DESC => 3, ), |
|
| 123 | - self::TYPE_FIELDNAME => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3, ), |
|
| 124 | - self::TYPE_NUM => array(0, 1, 2, 3, ) |
|
| 119 | + protected static $fieldKeys = array( |
|
| 120 | + self::TYPE_PHPNAME => array('Id' => 0, 'Name' => 1, 'Datecreate' => 2, 'Desc' => 3,), |
|
| 121 | + self::TYPE_CAMELNAME => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3,), |
|
| 122 | + self::TYPE_COLNAME => array(SelfpriceTableMap::COL_ID => 0, SelfpriceTableMap::COL_NAME => 1, SelfpriceTableMap::COL_DATECREATE => 2, SelfpriceTableMap::COL_DESC => 3,), |
|
| 123 | + self::TYPE_FIELDNAME => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3,), |
|
| 124 | + self::TYPE_NUM => array(0, 1, 2, 3,) |
|
| 125 | 125 | ); |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -403,8 +403,8 @@ discard block |
||
| 403 | 403 | $criteria = $criteria->buildCriteria(); // build Criteria from Selfprice object |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | - if ($criteria->containsKey(SelfpriceTableMap::COL_ID) && $criteria->keyContainsValue(SelfpriceTableMap::COL_ID) ) { |
|
| 407 | - throw new PropelException('Cannot insert a value for auto-increment primary key ('.SelfpriceTableMap::COL_ID.')'); |
|
| 406 | + if ($criteria->containsKey(SelfpriceTableMap::COL_ID) && $criteria->keyContainsValue(SelfpriceTableMap::COL_ID)) { |
|
| 407 | + throw new PropelException('Cannot insert a value for auto-increment primary key (' . SelfpriceTableMap::COL_ID . ')'); |
|
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | |
| 414 | 414 | // use transaction because $criteria could contain info |
| 415 | 415 | // for more than one table (I guess, conceivably) |
| 416 | - return $con->transaction(function () use ($con, $query) { |
|
| 416 | + return $con->transaction(function() use ($con, $query) { |
|
| 417 | 417 | return $query->doInsert($con); |
| 418 | 418 | }); |
| 419 | 419 | } |