Completed
Pull Request — master (#131)
by De Cramer
05:13 queued 02:26
created
src/eXpansion/Bundle/LocalRecords/Model/Base/Record.php 4 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      *
326 326
      * @param  string  $msg
327 327
      * @param  int     $priority One of the Propel::LOG_* logging levels
328
-     * @return boolean
328
+     * @return boolean|null
329 329
      */
330 330
     protected function log($msg, $priority = Propel::LOG_INFO)
331 331
     {
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
      * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1368 1368
      * The default key type is the column's TableMap::TYPE_PHPNAME.
1369 1369
      *
1370
-     * @param mixed $parser A AbstractParser instance,
1370
+     * @param string $parser A AbstractParser instance,
1371 1371
      *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1372 1372
      * @param string $data The source data to import from
1373 1373
      * @param string $keyType The type of keys the array uses.
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Propel\Runtime\ActiveQuery\Criteria;
10 10
 use Propel\Runtime\ActiveQuery\ModelCriteria;
11 11
 use Propel\Runtime\ActiveRecord\ActiveRecordInterface;
12
-use Propel\Runtime\Collection\Collection;
13 12
 use Propel\Runtime\Connection\ConnectionInterface;
14 13
 use Propel\Runtime\Exception\BadMethodCallException;
15 14
 use Propel\Runtime\Exception\LogicException;
Please login to merge, or discard this patch.
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
             throw new PropelException('Cannot insert a value for auto-increment primary key (' . RecordTableMap::COL_ID . ')');
1000 1000
         }
1001 1001
 
1002
-         // check the columns in natural order for more readable SQL queries
1002
+            // check the columns in natural order for more readable SQL queries
1003 1003
         if ($this->isColumnModified(RecordTableMap::COL_ID)) {
1004 1004
             $modifiedColumns[':p' . $index++]  = 'id';
1005 1005
         }
@@ -1355,25 +1355,25 @@  discard block
 block discarded – undo
1355 1355
         }
1356 1356
     }
1357 1357
 
1358
-     /**
1359
-     * Populate the current object from a string, using a given parser format
1360
-     * <code>
1361
-     * $book = new Book();
1362
-     * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
1363
-     * </code>
1364
-     *
1365
-     * You can specify the key type of the array by additionally passing one
1366
-     * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
1367
-     * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1368
-     * The default key type is the column's TableMap::TYPE_PHPNAME.
1369
-     *
1370
-     * @param mixed $parser A AbstractParser instance,
1371
-     *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1372
-     * @param string $data The source data to import from
1373
-     * @param string $keyType The type of keys the array uses.
1374
-     *
1375
-     * @return $this|\eXpansion\Bundle\LocalRecords\Model\Record The current object, for fluid interface
1376
-     */
1358
+        /**
1359
+         * Populate the current object from a string, using a given parser format
1360
+         * <code>
1361
+         * $book = new Book();
1362
+         * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
1363
+         * </code>
1364
+         *
1365
+         * You can specify the key type of the array by additionally passing one
1366
+         * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
1367
+         * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1368
+         * The default key type is the column's TableMap::TYPE_PHPNAME.
1369
+         *
1370
+         * @param mixed $parser A AbstractParser instance,
1371
+         *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1372
+         * @param string $data The source data to import from
1373
+         * @param string $keyType The type of keys the array uses.
1374
+         *
1375
+         * @return $this|\eXpansion\Bundle\LocalRecords\Model\Record The current object, for fluid interface
1376
+         */
1377 1377
     public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1378 1378
     {
1379 1379
         if (!$parser instanceof AbstractParser) {
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      */
330 330
     protected function log($msg, $priority = Propel::LOG_INFO)
331 331
     {
332
-        return Propel::log(get_class($this) . ': ' . $msg, $priority);
332
+        return Propel::log(get_class($this).': '.$msg, $priority);
333 333
     }
334 334
 
335 335
     /**
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         $propertyNames = [];
366 366
         $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC));
367 367
 
368
-        foreach($serializableProperties as $property) {
368
+        foreach ($serializableProperties as $property) {
369 369
             $propertyNames[] = $property->getName();
370 370
         }
371 371
 
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
             $con = Propel::getServiceContainer()->getWriteConnection(RecordTableMap::DATABASE_NAME);
863 863
         }
864 864
 
865
-        $con->transaction(function () use ($con) {
865
+        $con->transaction(function() use ($con) {
866 866
             $deleteQuery = ChildRecordQuery::create()
867 867
                 ->filterByPrimaryKey($this->getPrimaryKey());
868 868
             $ret = $this->preDelete($con);
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
             $con = Propel::getServiceContainer()->getWriteConnection(RecordTableMap::DATABASE_NAME);
898 898
         }
899 899
 
900
-        return $con->transaction(function () use ($con) {
900
+        return $con->transaction(function() use ($con) {
901 901
             $ret = $this->preSave($con);
902 902
             $isInsert = $this->isNew();
903 903
             if ($isInsert) {
@@ -996,39 +996,39 @@  discard block
 block discarded – undo
996 996
 
997 997
         $this->modifiedColumns[RecordTableMap::COL_ID] = true;
998 998
         if (null !== $this->id) {
999
-            throw new PropelException('Cannot insert a value for auto-increment primary key (' . RecordTableMap::COL_ID . ')');
999
+            throw new PropelException('Cannot insert a value for auto-increment primary key ('.RecordTableMap::COL_ID.')');
1000 1000
         }
1001 1001
 
1002 1002
          // check the columns in natural order for more readable SQL queries
1003 1003
         if ($this->isColumnModified(RecordTableMap::COL_ID)) {
1004
-            $modifiedColumns[':p' . $index++]  = 'id';
1004
+            $modifiedColumns[':p'.$index++]  = 'id';
1005 1005
         }
1006 1006
         if ($this->isColumnModified(RecordTableMap::COL_MAPUID)) {
1007
-            $modifiedColumns[':p' . $index++]  = 'mapUid';
1007
+            $modifiedColumns[':p'.$index++]  = 'mapUid';
1008 1008
         }
1009 1009
         if ($this->isColumnModified(RecordTableMap::COL_NBLAPS)) {
1010
-            $modifiedColumns[':p' . $index++]  = 'nbLaps';
1010
+            $modifiedColumns[':p'.$index++]  = 'nbLaps';
1011 1011
         }
1012 1012
         if ($this->isColumnModified(RecordTableMap::COL_SCORE)) {
1013
-            $modifiedColumns[':p' . $index++]  = 'score';
1013
+            $modifiedColumns[':p'.$index++]  = 'score';
1014 1014
         }
1015 1015
         if ($this->isColumnModified(RecordTableMap::COL_NBFINISH)) {
1016
-            $modifiedColumns[':p' . $index++]  = 'nbFinish';
1016
+            $modifiedColumns[':p'.$index++]  = 'nbFinish';
1017 1017
         }
1018 1018
         if ($this->isColumnModified(RecordTableMap::COL_AVGSCORE)) {
1019
-            $modifiedColumns[':p' . $index++]  = 'avgScore';
1019
+            $modifiedColumns[':p'.$index++]  = 'avgScore';
1020 1020
         }
1021 1021
         if ($this->isColumnModified(RecordTableMap::COL_CHECKPOINTS)) {
1022
-            $modifiedColumns[':p' . $index++]  = 'checkpoints';
1022
+            $modifiedColumns[':p'.$index++]  = 'checkpoints';
1023 1023
         }
1024 1024
         if ($this->isColumnModified(RecordTableMap::COL_PLAYER_ID)) {
1025
-            $modifiedColumns[':p' . $index++]  = 'player_id';
1025
+            $modifiedColumns[':p'.$index++]  = 'player_id';
1026 1026
         }
1027 1027
         if ($this->isColumnModified(RecordTableMap::COL_CREATED_AT)) {
1028
-            $modifiedColumns[':p' . $index++]  = 'created_at';
1028
+            $modifiedColumns[':p'.$index++]  = 'created_at';
1029 1029
         }
1030 1030
         if ($this->isColumnModified(RecordTableMap::COL_UPDATED_AT)) {
1031
-            $modifiedColumns[':p' . $index++]  = 'updated_at';
1031
+            $modifiedColumns[':p'.$index++]  = 'updated_at';
1032 1032
         }
1033 1033
 
1034 1034
         $sql = sprintf(
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
                         $key = 'Player';
1232 1232
                 }
1233 1233
 
1234
-                $result[$key] = $this->aPlayer->toArray($keyType, $includeLazyLoadColumns,  $alreadyDumpedObjects, true);
1234
+                $result[$key] = $this->aPlayer->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
1235 1235
             }
1236 1236
         }
1237 1237
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Model/Base/RecordQuery.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -677,7 +677,7 @@
 block discarded – undo
677 677
     /**
678 678
      * Filter the query by a related \eXpansion\Framework\PlayersBundle\Model\Player object
679 679
      *
680
-     * @param \eXpansion\Framework\PlayersBundle\Model\Player|ObjectCollection $player The related object(s) to use as filter
680
+     * @param \eXpansion\Framework\PlayersBundle\Model\Base\Player $player The related object(s) to use as filter
681 681
      * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
682 682
      *
683 683
      * @throws \Propel\Runtime\Exception\PropelException
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,6 @@
 block discarded – undo
76 76
  * @method     ChildRecord findOneByPlayerId(int $player_id) Return the first ChildRecord filtered by the player_id column
77 77
  * @method     ChildRecord findOneByCreatedAt(string $created_at) Return the first ChildRecord filtered by the created_at column
78 78
  * @method     ChildRecord findOneByUpdatedAt(string $updated_at) Return the first ChildRecord filtered by the updated_at column *
79
-
80 79
  * @method     ChildRecord requirePk($key, ConnectionInterface $con = null) Return the ChildRecord by primary key and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
81 80
  * @method     ChildRecord requireOne(ConnectionInterface $con = null) Return the first ChildRecord matching the query and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
82 81
  *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 
782 782
         // use transaction because $criteria could contain info
783 783
         // for more than one table or we could emulating ON DELETE CASCADE, etc.
784
-        return $con->transaction(function () use ($con) {
784
+        return $con->transaction(function() use ($con) {
785 785
             $affectedRows = 0; // initialize var to track total num of affected rows
786 786
             $affectedRows += parent::doDeleteAll($con);
787 787
             // Because this db requires some delete cascade/set null emulation, we have to
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
 
817 817
         // use transaction because $criteria could contain info
818 818
         // for more than one table or we could emulating ON DELETE CASCADE, etc.
819
-        return $con->transaction(function () use ($con, $criteria) {
819
+        return $con->transaction(function() use ($con, $criteria) {
820 820
             $affectedRows = 0; // initialize var to track total num of affected rows
821 821
 
822 822
             RecordTableMap::removeInstanceFromPool($criteria);
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Services/RecordHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use eXpansion\Bundle\LocalRecords\Model\Map\RecordTableMap;
6 6
 use eXpansion\Bundle\LocalRecords\Model\Record;
7
-use eXpansion\Bundle\LocalRecords\Model\RecordQuery;
8 7
 use eXpansion\Bundle\LocalRecords\Model\RecordQueryBuilder;
9 8
 use eXpansion\Framework\PlayersBundle\Storage\PlayerDb;
10 9
 use Propel\Runtime\Propel;
Please login to merge, or discard this patch.
src/eXpansion/Framework/PlayersBundle/Model/Base/Player.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      *
322 322
      * @param  string  $msg
323 323
      * @param  int     $priority One of the Propel::LOG_* logging levels
324
-     * @return boolean
324
+     * @return boolean|null
325 325
      */
326 326
     protected function log($msg, $priority = Propel::LOG_INFO)
327 327
     {
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
      *  => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
337 337
      * </code>
338 338
      *
339
-     * @param  mixed   $parser                 A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV')
339
+     * @param  string   $parser                 A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV')
340 340
      * @param  boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE.
341 341
      * @return string  The exported data
342 342
      */
@@ -1236,7 +1236,7 @@  discard block
 block discarded – undo
1236 1236
      * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1237 1237
      * The default key type is the column's TableMap::TYPE_PHPNAME.
1238 1238
      *
1239
-     * @param mixed $parser A AbstractParser instance,
1239
+     * @param string $parser A AbstractParser instance,
1240 1240
      *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1241 1241
      * @param string $data The source data to import from
1242 1242
      * @param string $keyType The type of keys the array uses.
Please login to merge, or discard this patch.
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -904,7 +904,7 @@  discard block
 block discarded – undo
904 904
             throw new PropelException('Cannot insert a value for auto-increment primary key (' . PlayerTableMap::COL_ID . ')');
905 905
         }
906 906
 
907
-         // check the columns in natural order for more readable SQL queries
907
+            // check the columns in natural order for more readable SQL queries
908 908
         if ($this->isColumnModified(PlayerTableMap::COL_ID)) {
909 909
             $modifiedColumns[':p' . $index++]  = 'id';
910 910
         }
@@ -1224,25 +1224,25 @@  discard block
 block discarded – undo
1224 1224
         }
1225 1225
     }
1226 1226
 
1227
-     /**
1228
-     * Populate the current object from a string, using a given parser format
1229
-     * <code>
1230
-     * $book = new Book();
1231
-     * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
1232
-     * </code>
1233
-     *
1234
-     * You can specify the key type of the array by additionally passing one
1235
-     * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
1236
-     * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1237
-     * The default key type is the column's TableMap::TYPE_PHPNAME.
1238
-     *
1239
-     * @param mixed $parser A AbstractParser instance,
1240
-     *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1241
-     * @param string $data The source data to import from
1242
-     * @param string $keyType The type of keys the array uses.
1243
-     *
1244
-     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object, for fluid interface
1245
-     */
1227
+        /**
1228
+         * Populate the current object from a string, using a given parser format
1229
+         * <code>
1230
+         * $book = new Book();
1231
+         * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
1232
+         * </code>
1233
+         *
1234
+         * You can specify the key type of the array by additionally passing one
1235
+         * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
1236
+         * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1237
+         * The default key type is the column's TableMap::TYPE_PHPNAME.
1238
+         *
1239
+         * @param mixed $parser A AbstractParser instance,
1240
+         *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1241
+         * @param string $data The source data to import from
1242
+         * @param string $keyType The type of keys the array uses.
1243
+         *
1244
+         * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object, for fluid interface
1245
+         */
1246 1246
     public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1247 1247
     {
1248 1248
         if (!$parser instanceof AbstractParser) {
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      */
326 326
     protected function log($msg, $priority = Propel::LOG_INFO)
327 327
     {
328
-        return Propel::log(get_class($this) . ': ' . $msg, $priority);
328
+        return Propel::log(get_class($this).': '.$msg, $priority);
329 329
     }
330 330
 
331 331
     /**
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
         $propertyNames = [];
362 362
         $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC));
363 363
 
364
-        foreach($serializableProperties as $property) {
364
+        foreach ($serializableProperties as $property) {
365 365
             $propertyNames[] = $property->getName();
366 366
         }
367 367
 
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
             $con = Propel::getServiceContainer()->getWriteConnection(PlayerTableMap::DATABASE_NAME);
774 774
         }
775 775
 
776
-        $con->transaction(function () use ($con) {
776
+        $con->transaction(function() use ($con) {
777 777
             $deleteQuery = ChildPlayerQuery::create()
778 778
                 ->filterByPrimaryKey($this->getPrimaryKey());
779 779
             $ret = $this->preDelete($con);
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
             $con = Propel::getServiceContainer()->getWriteConnection(PlayerTableMap::DATABASE_NAME);
809 809
         }
810 810
 
811
-        return $con->transaction(function () use ($con) {
811
+        return $con->transaction(function() use ($con) {
812 812
             $ret = $this->preSave($con);
813 813
             $isInsert = $this->isNew();
814 814
             if ($isInsert) {
@@ -901,33 +901,33 @@  discard block
 block discarded – undo
901 901
 
902 902
         $this->modifiedColumns[PlayerTableMap::COL_ID] = true;
903 903
         if (null !== $this->id) {
904
-            throw new PropelException('Cannot insert a value for auto-increment primary key (' . PlayerTableMap::COL_ID . ')');
904
+            throw new PropelException('Cannot insert a value for auto-increment primary key ('.PlayerTableMap::COL_ID.')');
905 905
         }
906 906
 
907 907
          // check the columns in natural order for more readable SQL queries
908 908
         if ($this->isColumnModified(PlayerTableMap::COL_ID)) {
909
-            $modifiedColumns[':p' . $index++]  = 'id';
909
+            $modifiedColumns[':p'.$index++]  = 'id';
910 910
         }
911 911
         if ($this->isColumnModified(PlayerTableMap::COL_LOGIN)) {
912
-            $modifiedColumns[':p' . $index++]  = 'login';
912
+            $modifiedColumns[':p'.$index++]  = 'login';
913 913
         }
914 914
         if ($this->isColumnModified(PlayerTableMap::COL_NICKNAME)) {
915
-            $modifiedColumns[':p' . $index++]  = 'nickname';
915
+            $modifiedColumns[':p'.$index++]  = 'nickname';
916 916
         }
917 917
         if ($this->isColumnModified(PlayerTableMap::COL_NICKNAME_STRIPPED)) {
918
-            $modifiedColumns[':p' . $index++]  = 'nickname_stripped';
918
+            $modifiedColumns[':p'.$index++]  = 'nickname_stripped';
919 919
         }
920 920
         if ($this->isColumnModified(PlayerTableMap::COL_PATH)) {
921
-            $modifiedColumns[':p' . $index++]  = 'path';
921
+            $modifiedColumns[':p'.$index++]  = 'path';
922 922
         }
923 923
         if ($this->isColumnModified(PlayerTableMap::COL_WINS)) {
924
-            $modifiedColumns[':p' . $index++]  = 'wins';
924
+            $modifiedColumns[':p'.$index++]  = 'wins';
925 925
         }
926 926
         if ($this->isColumnModified(PlayerTableMap::COL_ONLINE_TIME)) {
927
-            $modifiedColumns[':p' . $index++]  = 'online_time';
927
+            $modifiedColumns[':p'.$index++]  = 'online_time';
928 928
         }
929 929
         if ($this->isColumnModified(PlayerTableMap::COL_LAST_ONLINE)) {
930
-            $modifiedColumns[':p' . $index++]  = 'last_online';
930
+            $modifiedColumns[':p'.$index++]  = 'last_online';
931 931
         }
932 932
 
933 933
         $sql = sprintf(
@@ -1501,7 +1501,7 @@  discard block
 block discarded – undo
1501 1501
     public function getRecords(Criteria $criteria = null, ConnectionInterface $con = null)
1502 1502
     {
1503 1503
         $partial = $this->collRecordsPartial && !$this->isNew();
1504
-        if (null === $this->collRecords || null !== $criteria  || $partial) {
1504
+        if (null === $this->collRecords || null !== $criteria || $partial) {
1505 1505
             if ($this->isNew() && null === $this->collRecords) {
1506 1506
                 // return empty collection
1507 1507
                 $this->initRecords();
@@ -1639,7 +1639,7 @@  discard block
 block discarded – undo
1639 1639
      */
1640 1640
     protected function doAddRecord(Record $record)
1641 1641
     {
1642
-        $this->collRecords[]= $record;
1642
+        $this->collRecords[] = $record;
1643 1643
         $record->setPlayer($this);
1644 1644
     }
1645 1645
 
@@ -1656,7 +1656,7 @@  discard block
 block discarded – undo
1656 1656
                 $this->recordsScheduledForDeletion = clone $this->collRecords;
1657 1657
                 $this->recordsScheduledForDeletion->clear();
1658 1658
             }
1659
-            $this->recordsScheduledForDeletion[]= $record;
1659
+            $this->recordsScheduledForDeletion[] = $record;
1660 1660
             $record->setPlayer(null);
1661 1661
         }
1662 1662
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/PlayersBundle/Model/Base/PlayerQuery.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
      * $obj  = $c->findPk(12, $con);
145 145
      * </code>
146 146
      *
147
-     * @param mixed $key Primary key to use for the query
147
+     * @param integer $key Primary key to use for the query
148 148
      * @param ConnectionInterface $con an optional connection object
149 149
      *
150 150
      * @return ChildPlayer|array|mixed the result, formatted by the current formatter
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,6 @@
 block discarded – undo
70 70
  * @method     ChildPlayer findOneByWins(int $wins) Return the first ChildPlayer filtered by the wins column
71 71
  * @method     ChildPlayer findOneByOnlineTime(int $online_time) Return the first ChildPlayer filtered by the online_time column
72 72
  * @method     ChildPlayer findOneByLastOnline(string $last_online) Return the first ChildPlayer filtered by the last_online column *
73
-
74 73
  * @method     ChildPlayer requirePk($key, ConnectionInterface $con = null) Return the ChildPlayer by primary key and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
75 74
  * @method     ChildPlayer requireOne(ConnectionInterface $con = null) Return the first ChildPlayer matching the query and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
76 75
  *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 
650 650
         // use transaction because $criteria could contain info
651 651
         // for more than one table or we could emulating ON DELETE CASCADE, etc.
652
-        return $con->transaction(function () use ($con) {
652
+        return $con->transaction(function() use ($con) {
653 653
             $affectedRows = 0; // initialize var to track total num of affected rows
654 654
             $affectedRows += parent::doDeleteAll($con);
655 655
             // Because this db requires some delete cascade/set null emulation, we have to
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
 
685 685
         // use transaction because $criteria could contain info
686 686
         // for more than one table or we could emulating ON DELETE CASCADE, etc.
687
-        return $con->transaction(function () use ($con, $criteria) {
687
+        return $con->transaction(function() use ($con, $criteria) {
688 688
             $affectedRows = 0; // initialize var to track total num of affected rows
689 689
 
690 690
             PlayerTableMap::removeInstanceFromPool($criteria);
Please login to merge, or discard this patch.
src/eXpansion/Framework/PlayersBundle/Model/Map/PlayerTableMap.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -178,11 +178,11 @@  discard block
 block discarded – undo
178 178
     public function buildRelations()
179 179
     {
180 180
         $this->addRelation('Record', '\\eXpansion\\Bundle\\LocalRecords\\Model\\Record', RelationMap::ONE_TO_MANY, array (
181
-  0 =>
182
-  array (
181
+    0 =>
182
+    array (
183 183
     0 => ':player_id',
184 184
     1 => ':id',
185
-  ),
185
+    ),
186 186
 ), null, null, 'Records', false);
187 187
     } // buildRelations()
188 188
 
@@ -381,8 +381,8 @@  discard block
 block discarded – undo
381 381
      * @throws PropelException Any exceptions caught during processing will be
382 382
      *                         rethrown wrapped into a PropelException.
383 383
      */
384
-     public static function doDelete($values, ConnectionInterface $con = null)
385
-     {
384
+        public static function doDelete($values, ConnectionInterface $con = null)
385
+        {
386 386
         if (null === $con) {
387 387
             $con = Propel::getServiceContainer()->getWriteConnection(PlayerTableMap::DATABASE_NAME);
388 388
         }
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
      * first dimension keys are the type constants
123 123
      * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
124 124
      */
125
-    protected static $fieldNames = array (
126
-        self::TYPE_PHPNAME       => array('Id', 'Login', 'Nickname', 'NicknameStripped', 'Path', 'Wins', 'OnlineTime', 'LastOnline', ),
127
-        self::TYPE_CAMELNAME     => array('id', 'login', 'nickname', 'nicknameStripped', 'path', 'wins', 'onlineTime', 'lastOnline', ),
128
-        self::TYPE_COLNAME       => array(PlayerTableMap::COL_ID, PlayerTableMap::COL_LOGIN, PlayerTableMap::COL_NICKNAME, PlayerTableMap::COL_NICKNAME_STRIPPED, PlayerTableMap::COL_PATH, PlayerTableMap::COL_WINS, PlayerTableMap::COL_ONLINE_TIME, PlayerTableMap::COL_LAST_ONLINE, ),
129
-        self::TYPE_FIELDNAME     => array('id', 'login', 'nickname', 'nickname_stripped', 'path', 'wins', 'online_time', 'last_online', ),
130
-        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7, )
125
+    protected static $fieldNames = array(
126
+        self::TYPE_PHPNAME       => array('Id', 'Login', 'Nickname', 'NicknameStripped', 'Path', 'Wins', 'OnlineTime', 'LastOnline',),
127
+        self::TYPE_CAMELNAME     => array('id', 'login', 'nickname', 'nicknameStripped', 'path', 'wins', 'onlineTime', 'lastOnline',),
128
+        self::TYPE_COLNAME       => array(PlayerTableMap::COL_ID, PlayerTableMap::COL_LOGIN, PlayerTableMap::COL_NICKNAME, PlayerTableMap::COL_NICKNAME_STRIPPED, PlayerTableMap::COL_PATH, PlayerTableMap::COL_WINS, PlayerTableMap::COL_ONLINE_TIME, PlayerTableMap::COL_LAST_ONLINE,),
129
+        self::TYPE_FIELDNAME     => array('id', 'login', 'nickname', 'nickname_stripped', 'path', 'wins', 'online_time', 'last_online',),
130
+        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7,)
131 131
     );
132 132
 
133 133
     /**
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
      * first dimension keys are the type constants
137 137
      * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
138 138
      */
139
-    protected static $fieldKeys = array (
140
-        self::TYPE_PHPNAME       => array('Id' => 0, 'Login' => 1, 'Nickname' => 2, 'NicknameStripped' => 3, 'Path' => 4, 'Wins' => 5, 'OnlineTime' => 6, 'LastOnline' => 7, ),
141
-        self::TYPE_CAMELNAME     => array('id' => 0, 'login' => 1, 'nickname' => 2, 'nicknameStripped' => 3, 'path' => 4, 'wins' => 5, 'onlineTime' => 6, 'lastOnline' => 7, ),
142
-        self::TYPE_COLNAME       => array(PlayerTableMap::COL_ID => 0, PlayerTableMap::COL_LOGIN => 1, PlayerTableMap::COL_NICKNAME => 2, PlayerTableMap::COL_NICKNAME_STRIPPED => 3, PlayerTableMap::COL_PATH => 4, PlayerTableMap::COL_WINS => 5, PlayerTableMap::COL_ONLINE_TIME => 6, PlayerTableMap::COL_LAST_ONLINE => 7, ),
143
-        self::TYPE_FIELDNAME     => array('id' => 0, 'login' => 1, 'nickname' => 2, 'nickname_stripped' => 3, 'path' => 4, 'wins' => 5, 'online_time' => 6, 'last_online' => 7, ),
144
-        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7, )
139
+    protected static $fieldKeys = array(
140
+        self::TYPE_PHPNAME       => array('Id' => 0, 'Login' => 1, 'Nickname' => 2, 'NicknameStripped' => 3, 'Path' => 4, 'Wins' => 5, 'OnlineTime' => 6, 'LastOnline' => 7,),
141
+        self::TYPE_CAMELNAME     => array('id' => 0, 'login' => 1, 'nickname' => 2, 'nicknameStripped' => 3, 'path' => 4, 'wins' => 5, 'onlineTime' => 6, 'lastOnline' => 7,),
142
+        self::TYPE_COLNAME       => array(PlayerTableMap::COL_ID => 0, PlayerTableMap::COL_LOGIN => 1, PlayerTableMap::COL_NICKNAME => 2, PlayerTableMap::COL_NICKNAME_STRIPPED => 3, PlayerTableMap::COL_PATH => 4, PlayerTableMap::COL_WINS => 5, PlayerTableMap::COL_ONLINE_TIME => 6, PlayerTableMap::COL_LAST_ONLINE => 7,),
143
+        self::TYPE_FIELDNAME     => array('id' => 0, 'login' => 1, 'nickname' => 2, 'nickname_stripped' => 3, 'path' => 4, 'wins' => 5, 'online_time' => 6, 'last_online' => 7,),
144
+        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7,)
145 145
     );
146 146
 
147 147
     /**
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public function buildRelations()
179 179
     {
180
-        $this->addRelation('Record', '\\eXpansion\\Bundle\\LocalRecords\\Model\\Record', RelationMap::ONE_TO_MANY, array (
180
+        $this->addRelation('Record', '\\eXpansion\\Bundle\\LocalRecords\\Model\\Record', RelationMap::ONE_TO_MANY, array(
181 181
   0 =>
182
-  array (
182
+  array(
183 183
     0 => ':player_id',
184 184
     1 => ':id',
185 185
   ),
@@ -336,14 +336,14 @@  discard block
 block discarded – undo
336 336
             $criteria->addSelectColumn(PlayerTableMap::COL_ONLINE_TIME);
337 337
             $criteria->addSelectColumn(PlayerTableMap::COL_LAST_ONLINE);
338 338
         } else {
339
-            $criteria->addSelectColumn($alias . '.id');
340
-            $criteria->addSelectColumn($alias . '.login');
341
-            $criteria->addSelectColumn($alias . '.nickname');
342
-            $criteria->addSelectColumn($alias . '.nickname_stripped');
343
-            $criteria->addSelectColumn($alias . '.path');
344
-            $criteria->addSelectColumn($alias . '.wins');
345
-            $criteria->addSelectColumn($alias . '.online_time');
346
-            $criteria->addSelectColumn($alias . '.last_online');
339
+            $criteria->addSelectColumn($alias.'.id');
340
+            $criteria->addSelectColumn($alias.'.login');
341
+            $criteria->addSelectColumn($alias.'.nickname');
342
+            $criteria->addSelectColumn($alias.'.nickname_stripped');
343
+            $criteria->addSelectColumn($alias.'.path');
344
+            $criteria->addSelectColumn($alias.'.wins');
345
+            $criteria->addSelectColumn($alias.'.online_time');
346
+            $criteria->addSelectColumn($alias.'.last_online');
347 347
         }
348 348
     }
349 349
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
             $criteria = $criteria->buildCriteria(); // build Criteria from Player object
444 444
         }
445 445
 
446
-        if ($criteria->containsKey(PlayerTableMap::COL_ID) && $criteria->keyContainsValue(PlayerTableMap::COL_ID) ) {
446
+        if ($criteria->containsKey(PlayerTableMap::COL_ID) && $criteria->keyContainsValue(PlayerTableMap::COL_ID)) {
447 447
             throw new PropelException('Cannot insert a value for auto-increment primary key ('.PlayerTableMap::COL_ID.')');
448 448
         }
449 449
 
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 
454 454
         // use transaction because $criteria could contain info
455 455
         // for more than one table (I guess, conceivably)
456
-        return $con->transaction(function () use ($con, $query) {
456
+        return $con->transaction(function() use ($con, $query) {
457 457
             return $query->doInsert($con);
458 458
         });
459 459
     }
Please login to merge, or discard this patch.
src/eXpansion/Framework/PlayersBundle/Model/PlayerQueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $connection = Propel::getWriteConnection(PlayerTableMap::DATABASE_NAME);
48 48
         $connection->beginTransaction();
49 49
 
50
-        foreach ($players as $record){
50
+        foreach ($players as $record) {
51 51
             $this->save($record);
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Model/Map/RecordTableMap.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
     public function buildRelations()
190 190
     {
191 191
         $this->addRelation('Player', '\\eXpansion\\Framework\\PlayersBundle\\Model\\Player', RelationMap::MANY_TO_ONE, array (
192
-  0 =>
193
-  array (
192
+    0 =>
193
+    array (
194 194
     0 => ':player_id',
195 195
     1 => ':id',
196
-  ),
196
+    ),
197 197
 ), null, null, null, false);
198 198
     } // buildRelations()
199 199
 
@@ -409,8 +409,8 @@  discard block
 block discarded – undo
409 409
      * @throws PropelException Any exceptions caught during processing will be
410 410
      *                         rethrown wrapped into a PropelException.
411 411
      */
412
-     public static function doDelete($values, ConnectionInterface $con = null)
413
-     {
412
+        public static function doDelete($values, ConnectionInterface $con = null)
413
+        {
414 414
         if (null === $con) {
415 415
             $con = Propel::getServiceContainer()->getWriteConnection(RecordTableMap::DATABASE_NAME);
416 416
         }
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
      * first dimension keys are the type constants
133 133
      * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
134 134
      */
135
-    protected static $fieldNames = array (
136
-        self::TYPE_PHPNAME       => array('Id', 'Mapuid', 'Nblaps', 'Score', 'Nbfinish', 'Avgscore', 'Checkpoints', 'PlayerId', 'CreatedAt', 'UpdatedAt', ),
137
-        self::TYPE_CAMELNAME     => array('id', 'mapuid', 'nblaps', 'score', 'nbfinish', 'avgscore', 'checkpoints', 'playerId', 'createdAt', 'updatedAt', ),
138
-        self::TYPE_COLNAME       => array(RecordTableMap::COL_ID, RecordTableMap::COL_MAPUID, RecordTableMap::COL_NBLAPS, RecordTableMap::COL_SCORE, RecordTableMap::COL_NBFINISH, RecordTableMap::COL_AVGSCORE, RecordTableMap::COL_CHECKPOINTS, RecordTableMap::COL_PLAYER_ID, RecordTableMap::COL_CREATED_AT, RecordTableMap::COL_UPDATED_AT, ),
139
-        self::TYPE_FIELDNAME     => array('id', 'mapUid', 'nbLaps', 'score', 'nbFinish', 'avgScore', 'checkpoints', 'player_id', 'created_at', 'updated_at', ),
140
-        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
135
+    protected static $fieldNames = array(
136
+        self::TYPE_PHPNAME       => array('Id', 'Mapuid', 'Nblaps', 'Score', 'Nbfinish', 'Avgscore', 'Checkpoints', 'PlayerId', 'CreatedAt', 'UpdatedAt',),
137
+        self::TYPE_CAMELNAME     => array('id', 'mapuid', 'nblaps', 'score', 'nbfinish', 'avgscore', 'checkpoints', 'playerId', 'createdAt', 'updatedAt',),
138
+        self::TYPE_COLNAME       => array(RecordTableMap::COL_ID, RecordTableMap::COL_MAPUID, RecordTableMap::COL_NBLAPS, RecordTableMap::COL_SCORE, RecordTableMap::COL_NBFINISH, RecordTableMap::COL_AVGSCORE, RecordTableMap::COL_CHECKPOINTS, RecordTableMap::COL_PLAYER_ID, RecordTableMap::COL_CREATED_AT, RecordTableMap::COL_UPDATED_AT,),
139
+        self::TYPE_FIELDNAME     => array('id', 'mapUid', 'nbLaps', 'score', 'nbFinish', 'avgScore', 'checkpoints', 'player_id', 'created_at', 'updated_at',),
140
+        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9,)
141 141
     );
142 142
 
143 143
     /**
@@ -146,12 +146,12 @@  discard block
 block discarded – undo
146 146
      * first dimension keys are the type constants
147 147
      * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
148 148
      */
149
-    protected static $fieldKeys = array (
150
-        self::TYPE_PHPNAME       => array('Id' => 0, 'Mapuid' => 1, 'Nblaps' => 2, 'Score' => 3, 'Nbfinish' => 4, 'Avgscore' => 5, 'Checkpoints' => 6, 'PlayerId' => 7, 'CreatedAt' => 8, 'UpdatedAt' => 9, ),
151
-        self::TYPE_CAMELNAME     => array('id' => 0, 'mapuid' => 1, 'nblaps' => 2, 'score' => 3, 'nbfinish' => 4, 'avgscore' => 5, 'checkpoints' => 6, 'playerId' => 7, 'createdAt' => 8, 'updatedAt' => 9, ),
152
-        self::TYPE_COLNAME       => array(RecordTableMap::COL_ID => 0, RecordTableMap::COL_MAPUID => 1, RecordTableMap::COL_NBLAPS => 2, RecordTableMap::COL_SCORE => 3, RecordTableMap::COL_NBFINISH => 4, RecordTableMap::COL_AVGSCORE => 5, RecordTableMap::COL_CHECKPOINTS => 6, RecordTableMap::COL_PLAYER_ID => 7, RecordTableMap::COL_CREATED_AT => 8, RecordTableMap::COL_UPDATED_AT => 9, ),
153
-        self::TYPE_FIELDNAME     => array('id' => 0, 'mapUid' => 1, 'nbLaps' => 2, 'score' => 3, 'nbFinish' => 4, 'avgScore' => 5, 'checkpoints' => 6, 'player_id' => 7, 'created_at' => 8, 'updated_at' => 9, ),
154
-        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
149
+    protected static $fieldKeys = array(
150
+        self::TYPE_PHPNAME       => array('Id' => 0, 'Mapuid' => 1, 'Nblaps' => 2, 'Score' => 3, 'Nbfinish' => 4, 'Avgscore' => 5, 'Checkpoints' => 6, 'PlayerId' => 7, 'CreatedAt' => 8, 'UpdatedAt' => 9,),
151
+        self::TYPE_CAMELNAME     => array('id' => 0, 'mapuid' => 1, 'nblaps' => 2, 'score' => 3, 'nbfinish' => 4, 'avgscore' => 5, 'checkpoints' => 6, 'playerId' => 7, 'createdAt' => 8, 'updatedAt' => 9,),
152
+        self::TYPE_COLNAME       => array(RecordTableMap::COL_ID => 0, RecordTableMap::COL_MAPUID => 1, RecordTableMap::COL_NBLAPS => 2, RecordTableMap::COL_SCORE => 3, RecordTableMap::COL_NBFINISH => 4, RecordTableMap::COL_AVGSCORE => 5, RecordTableMap::COL_CHECKPOINTS => 6, RecordTableMap::COL_PLAYER_ID => 7, RecordTableMap::COL_CREATED_AT => 8, RecordTableMap::COL_UPDATED_AT => 9,),
153
+        self::TYPE_FIELDNAME     => array('id' => 0, 'mapUid' => 1, 'nbLaps' => 2, 'score' => 3, 'nbFinish' => 4, 'avgScore' => 5, 'checkpoints' => 6, 'player_id' => 7, 'created_at' => 8, 'updated_at' => 9,),
154
+        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9,)
155 155
     );
156 156
 
157 157
     /**
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function buildRelations()
190 190
     {
191
-        $this->addRelation('Player', '\\eXpansion\\Framework\\PlayersBundle\\Model\\Player', RelationMap::MANY_TO_ONE, array (
191
+        $this->addRelation('Player', '\\eXpansion\\Framework\\PlayersBundle\\Model\\Player', RelationMap::MANY_TO_ONE, array(
192 192
   0 =>
193
-  array (
193
+  array(
194 194
     0 => ':player_id',
195 195
     1 => ':id',
196 196
   ),
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     public function getBehaviors()
207 207
     {
208 208
         return array(
209
-            'timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', 'disable_created_at' => 'false', 'disable_updated_at' => 'false', ),
209
+            'timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', 'disable_created_at' => 'false', 'disable_updated_at' => 'false',),
210 210
         );
211 211
     } // getBehaviors()
212 212
 
@@ -362,16 +362,16 @@  discard block
 block discarded – undo
362 362
             $criteria->addSelectColumn(RecordTableMap::COL_CREATED_AT);
363 363
             $criteria->addSelectColumn(RecordTableMap::COL_UPDATED_AT);
364 364
         } else {
365
-            $criteria->addSelectColumn($alias . '.id');
366
-            $criteria->addSelectColumn($alias . '.mapUid');
367
-            $criteria->addSelectColumn($alias . '.nbLaps');
368
-            $criteria->addSelectColumn($alias . '.score');
369
-            $criteria->addSelectColumn($alias . '.nbFinish');
370
-            $criteria->addSelectColumn($alias . '.avgScore');
371
-            $criteria->addSelectColumn($alias . '.checkpoints');
372
-            $criteria->addSelectColumn($alias . '.player_id');
373
-            $criteria->addSelectColumn($alias . '.created_at');
374
-            $criteria->addSelectColumn($alias . '.updated_at');
365
+            $criteria->addSelectColumn($alias.'.id');
366
+            $criteria->addSelectColumn($alias.'.mapUid');
367
+            $criteria->addSelectColumn($alias.'.nbLaps');
368
+            $criteria->addSelectColumn($alias.'.score');
369
+            $criteria->addSelectColumn($alias.'.nbFinish');
370
+            $criteria->addSelectColumn($alias.'.avgScore');
371
+            $criteria->addSelectColumn($alias.'.checkpoints');
372
+            $criteria->addSelectColumn($alias.'.player_id');
373
+            $criteria->addSelectColumn($alias.'.created_at');
374
+            $criteria->addSelectColumn($alias.'.updated_at');
375 375
         }
376 376
     }
377 377
 
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
             $criteria = $criteria->buildCriteria(); // build Criteria from Record object
472 472
         }
473 473
 
474
-        if ($criteria->containsKey(RecordTableMap::COL_ID) && $criteria->keyContainsValue(RecordTableMap::COL_ID) ) {
474
+        if ($criteria->containsKey(RecordTableMap::COL_ID) && $criteria->keyContainsValue(RecordTableMap::COL_ID)) {
475 475
             throw new PropelException('Cannot insert a value for auto-increment primary key ('.RecordTableMap::COL_ID.')');
476 476
         }
477 477
 
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 
482 482
         // use transaction because $criteria could contain info
483 483
         // for more than one table (I guess, conceivably)
484
-        return $con->transaction(function () use ($con, $query) {
484
+        return $con->transaction(function() use ($con, $query) {
485 485
             return $query->doInsert($con);
486 486
         });
487 487
     }
Please login to merge, or discard this patch.