Completed
Push — master ( 76c71b...91372c )
by dima
05:24
created
bootstrap/app.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
30 30
     if (version_compare(PHP_VERSION, '5.3', '>='))
31 31
     {
32 32
         error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
33
-    }
34
-    else
33
+    } else
35 34
     {
36 35
         error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
37 36
     }    
Please login to merge, or discard this patch.
packages/core/src/Models/Task/Base/Task.php 4 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      *
290 290
      * @param  string  $msg
291 291
      * @param  int     $priority One of the Propel::LOG_* logging levels
292
-     * @return boolean
292
+     * @return boolean|null
293 293
      */
294 294
     protected function log($msg, $priority = Propel::LOG_INFO)
295 295
     {
@@ -1132,7 +1132,7 @@  discard block
 block discarded – undo
1132 1132
      * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1133 1133
      * The default key type is the column's TableMap::TYPE_PHPNAME.
1134 1134
      *
1135
-     * @param mixed $parser A AbstractParser instance,
1135
+     * @param string $parser A AbstractParser instance,
1136 1136
      *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1137 1137
      * @param string $data The source data to import from
1138 1138
      * @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
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use Propel\Runtime\ActiveQuery\Criteria;
12 12
 use Propel\Runtime\ActiveQuery\ModelCriteria;
13 13
 use Propel\Runtime\ActiveRecord\ActiveRecordInterface;
14
-use Propel\Runtime\Collection\Collection;
15 14
 use Propel\Runtime\Connection\ConnectionInterface;
16 15
 use Propel\Runtime\Exception\BadMethodCallException;
17 16
 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
@@ -668,7 +668,7 @@  discard block
 block discarded – undo
668 668
             throw new PropelException('Cannot insert a value for auto-increment primary key (' . TaskTableMap::COL_ID . ')');
669 669
         }
670 670
 
671
-         // check the columns in natural order for more readable SQL queries
671
+            // check the columns in natural order for more readable SQL queries
672 672
         if ($this->isColumnModified(TaskTableMap::COL_ID)) {
673 673
             $modifiedColumns[':p' . $index++]  = 'id';
674 674
         }
@@ -900,25 +900,25 @@  discard block
 block discarded – undo
900 900
         }
901 901
     }
902 902
 
903
-     /**
904
-     * Populate the current object from a string, using a given parser format
905
-     * <code>
906
-     * $book = new Book();
907
-     * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
908
-     * </code>
909
-     *
910
-     * You can specify the key type of the array by additionally passing one
911
-     * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
912
-     * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
913
-     * The default key type is the column's TableMap::TYPE_PHPNAME.
914
-     *
915
-     * @param mixed $parser A AbstractParser instance,
916
-     *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
917
-     * @param string $data The source data to import from
918
-     * @param string $keyType The type of keys the array uses.
919
-     *
920
-     * @return $this|\Core\Models\Task\Task The current object, for fluid interface
921
-     */
903
+        /**
904
+         * Populate the current object from a string, using a given parser format
905
+         * <code>
906
+         * $book = new Book();
907
+         * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
908
+         * </code>
909
+         *
910
+         * You can specify the key type of the array by additionally passing one
911
+         * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
912
+         * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
913
+         * The default key type is the column's TableMap::TYPE_PHPNAME.
914
+         *
915
+         * @param mixed $parser A AbstractParser instance,
916
+         *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
917
+         * @param string $data The source data to import from
918
+         * @param string $keyType The type of keys the array uses.
919
+         *
920
+         * @return $this|\Core\Models\Task\Task The current object, for fluid interface
921
+         */
922 922
     public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
923 923
     {
924 924
         if (!$parser instanceof AbstractParser) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         $propertyNames = [];
309 309
         $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC));
310 310
 
311
-        foreach($serializableProperties as $property) {
311
+        foreach ($serializableProperties as $property) {
312 312
             $propertyNames[] = $property->getName();
313 313
         }
314 314
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
             $con = Propel::getServiceContainer()->getWriteConnection(TaskTableMap::DATABASE_NAME);
567 567
         }
568 568
 
569
-        $con->transaction(function () use ($con) {
569
+        $con->transaction(function() use ($con) {
570 570
             $deleteQuery = ChildTaskQuery::create()
571 571
                 ->filterByPrimaryKey($this->getPrimaryKey());
572 572
             $ret = $this->preDelete($con);
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
             $con = Propel::getServiceContainer()->getWriteConnection(TaskTableMap::DATABASE_NAME);
602 602
         }
603 603
 
604
-        return $con->transaction(function () use ($con) {
604
+        return $con->transaction(function() use ($con) {
605 605
             $ret = $this->preSave($con);
606 606
             $isInsert = $this->isNew();
607 607
             if ($isInsert) {
Please login to merge, or discard this patch.
packages/core/src/Models/User/Base/User.php 4 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use Propel\Runtime\ActiveQuery\Criteria;
12 12
 use Propel\Runtime\ActiveQuery\ModelCriteria;
13 13
 use Propel\Runtime\ActiveRecord\ActiveRecordInterface;
14
-use Propel\Runtime\Collection\Collection;
15 14
 use Propel\Runtime\Connection\ConnectionInterface;
16 15
 use Propel\Runtime\Exception\BadMethodCallException;
17 16
 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
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
             throw new PropelException('Cannot insert a value for auto-increment primary key (' . UserTableMap::COL_ID . ')');
852 852
         }
853 853
 
854
-         // check the columns in natural order for more readable SQL queries
854
+            // check the columns in natural order for more readable SQL queries
855 855
         if ($this->isColumnModified(UserTableMap::COL_ID)) {
856 856
             $modifiedColumns[':p' . $index++]  = 'id';
857 857
         }
@@ -1147,25 +1147,25 @@  discard block
 block discarded – undo
1147 1147
         }
1148 1148
     }
1149 1149
 
1150
-     /**
1151
-     * Populate the current object from a string, using a given parser format
1152
-     * <code>
1153
-     * $book = new Book();
1154
-     * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
1155
-     * </code>
1156
-     *
1157
-     * You can specify the key type of the array by additionally passing one
1158
-     * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
1159
-     * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1160
-     * The default key type is the column's TableMap::TYPE_PHPNAME.
1161
-     *
1162
-     * @param mixed $parser A AbstractParser instance,
1163
-     *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1164
-     * @param string $data The source data to import from
1165
-     * @param string $keyType The type of keys the array uses.
1166
-     *
1167
-     * @return $this|\Core\Models\User\User The current object, for fluid interface
1168
-     */
1150
+        /**
1151
+         * Populate the current object from a string, using a given parser format
1152
+         * <code>
1153
+         * $book = new Book();
1154
+         * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
1155
+         * </code>
1156
+         *
1157
+         * You can specify the key type of the array by additionally passing one
1158
+         * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
1159
+         * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1160
+         * The default key type is the column's TableMap::TYPE_PHPNAME.
1161
+         *
1162
+         * @param mixed $parser A AbstractParser instance,
1163
+         *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1164
+         * @param string $data The source data to import from
1165
+         * @param string $keyType The type of keys the array uses.
1166
+         *
1167
+         * @return $this|\Core\Models\User\User The current object, for fluid interface
1168
+         */
1169 1169
     public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1170 1170
     {
1171 1171
         if (!$parser instanceof AbstractParser) {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      *
324 324
      * @param  string  $msg
325 325
      * @param  int     $priority One of the Propel::LOG_* logging levels
326
-     * @return boolean
326
+     * @return boolean|null
327 327
      */
328 328
     protected function log($msg, $priority = Propel::LOG_INFO)
329 329
     {
@@ -1168,7 +1168,7 @@  discard block
 block discarded – undo
1168 1168
      * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1169 1169
      * The default key type is the column's TableMap::TYPE_PHPNAME.
1170 1170
      *
1171
-     * @param mixed $parser A AbstractParser instance,
1171
+     * @param string $parser A AbstractParser instance,
1172 1172
      *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1173 1173
      * @param string $data The source data to import from
1174 1174
      * @param string $keyType The type of keys the array uses.
@@ -1438,7 +1438,7 @@  discard block
 block discarded – undo
1438 1438
      * Gets any ConstraintViolation objects that resulted from last call to validate().
1439 1439
      *
1440 1440
      *
1441
-     * @return     object ConstraintViolationList
1441
+     * @return     ConstraintViolationList ConstraintViolationList
1442 1442
      * @see        validate()
1443 1443
      */
1444 1444
     public function getValidationFailures()
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         $propertyNames = [];
364 364
         $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC));
365 365
 
366
-        foreach($serializableProperties as $property) {
366
+        foreach ($serializableProperties as $property) {
367 367
             $propertyNames[] = $property->getName();
368 368
         }
369 369
 
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
             $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);
754 754
         }
755 755
 
756
-        $con->transaction(function () use ($con) {
756
+        $con->transaction(function() use ($con) {
757 757
             $deleteQuery = ChildUserQuery::create()
758 758
                 ->filterByPrimaryKey($this->getPrimaryKey());
759 759
             $ret = $this->preDelete($con);
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
             $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);
789 789
         }
790 790
 
791
-        return $con->transaction(function () use ($con) {
791
+        return $con->transaction(function() use ($con) {
792 792
             $ret = $this->preSave($con);
793 793
             $isInsert = $this->isNew();
794 794
             if ($isInsert) {
Please login to merge, or discard this patch.
packages/core/src/Models/User/UserRepository.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Models\User;
4 4
 
5 5
 use Propel\Runtime\ActiveRecord\ActiveRecordInterface;
6
-
7 6
 use Models\User\User;
8 7
 use Models\User\UserQuery;
9 8
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function findById($id)
29 29
     {
30 30
         if (!$User = UserQuery::create()->findPk($id)) {
31
-            throw new \InvalidArgumentException(sprintf('User with ID %d does not exist',$id));
31
+            throw new \InvalidArgumentException(sprintf('User with ID %d does not exist', $id));
32 32
         }
33 33
 
34 34
         return $User;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
 		
56 56
         if (!$Model->validate()) {
57
-            throw new ValidationException($Model->getValidationFailures(),"User not valid");
57
+            throw new ValidationException($Model->getValidationFailures(), "User not valid");
58 58
         }        
59 59
 
60 60
         return $Model->save();        
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * 
65 65
      * @return \Core\Models\User\User $User
66 66
      */
67
-    public function build(){
67
+    public function build() {
68 68
         return new User;
69 69
     }
70 70
 
Please login to merge, or discard this patch.
packages/selfprice/src/Models/Selfprice/Base/Selfprice.php 4 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      *
290 290
      * @param  string  $msg
291 291
      * @param  int     $priority One of the Propel::LOG_* logging levels
292
-     * @return boolean
292
+     * @return boolean|null
293 293
      */
294 294
     protected function log($msg, $priority = Propel::LOG_INFO)
295 295
     {
@@ -1132,7 +1132,7 @@  discard block
 block discarded – undo
1132 1132
      * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
1133 1133
      * The default key type is the column's TableMap::TYPE_PHPNAME.
1134 1134
      *
1135
-     * @param mixed $parser A AbstractParser instance,
1135
+     * @param string $parser A AbstractParser instance,
1136 1136
      *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
1137 1137
      * @param string $data The source data to import from
1138 1138
      * @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
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use Propel\Runtime\ActiveQuery\Criteria;
12 12
 use Propel\Runtime\ActiveQuery\ModelCriteria;
13 13
 use Propel\Runtime\ActiveRecord\ActiveRecordInterface;
14
-use Propel\Runtime\Collection\Collection;
15 14
 use Propel\Runtime\Connection\ConnectionInterface;
16 15
 use Propel\Runtime\Exception\BadMethodCallException;
17 16
 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
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
             throw new PropelException('Cannot insert a value for auto-increment primary key (' . SelfpriceTableMap::COL_ID . ')');
695 695
         }
696 696
 
697
-         // check the columns in natural order for more readable SQL queries
697
+            // check the columns in natural order for more readable SQL queries
698 698
         if ($this->isColumnModified(SelfpriceTableMap::COL_ID)) {
699 699
             $modifiedColumns[':p' . $index++]  = 'id';
700 700
         }
@@ -936,25 +936,25 @@  discard block
 block discarded – undo
936 936
         }
937 937
     }
938 938
 
939
-     /**
940
-     * Populate the current object from a string, using a given parser format
941
-     * <code>
942
-     * $book = new Book();
943
-     * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
944
-     * </code>
945
-     *
946
-     * You can specify the key type of the array by additionally passing one
947
-     * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
948
-     * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
949
-     * The default key type is the column's TableMap::TYPE_PHPNAME.
950
-     *
951
-     * @param mixed $parser A AbstractParser instance,
952
-     *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
953
-     * @param string $data The source data to import from
954
-     * @param string $keyType The type of keys the array uses.
955
-     *
956
-     * @return $this|\Selfprice\Models\Selfprice\Selfprice The current object, for fluid interface
957
-     */
939
+        /**
940
+         * Populate the current object from a string, using a given parser format
941
+         * <code>
942
+         * $book = new Book();
943
+         * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}');
944
+         * </code>
945
+         *
946
+         * You can specify the key type of the array by additionally passing one
947
+         * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
948
+         * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
949
+         * The default key type is the column's TableMap::TYPE_PHPNAME.
950
+         *
951
+         * @param mixed $parser A AbstractParser instance,
952
+         *                       or a format name ('XML', 'YAML', 'JSON', 'CSV')
953
+         * @param string $data The source data to import from
954
+         * @param string $keyType The type of keys the array uses.
955
+         *
956
+         * @return $this|\Selfprice\Models\Selfprice\Selfprice The current object, for fluid interface
957
+         */
958 958
     public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
959 959
     {
960 960
         if (!$parser instanceof AbstractParser) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
packages/core/src/Models/Task/Base/TaskQuery.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@
 block discarded – undo
49 49
  * @method     ChildUser findOneByRememberToken(string $remember_token) Return the first ChildUser filtered by the remember_token column
50 50
  * @method     ChildUser findOneByCreatedAt(string $created_at) Return the first ChildUser filtered by the created_at column
51 51
  * @method     ChildUser findOneByUpdatedAt(string $updated_at) Return the first ChildUser filtered by the updated_at column *
52
-
53 52
  * @method     ChildUser requirePk($key, ConnectionInterface $con = null) Return the ChildUser by primary key and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
54 53
  * @method     ChildUser requireOne(ConnectionInterface $con = null) Return the first ChildUser matching the query and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
55 54
  *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
packages/core/src/Models/Task/Map/TaskTableMap.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -365,8 +365,8 @@
 block discarded – undo
365 365
      * @throws PropelException Any exceptions caught during processing will be
366 366
      *                         rethrown wrapped into a PropelException.
367 367
      */
368
-     public static function doDelete($values, ConnectionInterface $con = null)
369
-     {
368
+        public static function doDelete($values, ConnectionInterface $con = null)
369
+        {
370 370
         if (null === $con) {
371 371
             $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);
372 372
         }
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
packages/core/src/Models/User/Base/UserQuery.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@
 block discarded – undo
49 49
  * @method     ChildUser findOneByRememberToken(string $remember_token) Return the first ChildUser filtered by the remember_token column
50 50
  * @method     ChildUser findOneByCreatedAt(string $created_at) Return the first ChildUser filtered by the created_at column
51 51
  * @method     ChildUser findOneByUpdatedAt(string $updated_at) Return the first ChildUser filtered by the updated_at column *
52
-
53 52
  * @method     ChildUser requirePk($key, ConnectionInterface $con = null) Return the ChildUser by primary key and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
54 53
  * @method     ChildUser requireOne(ConnectionInterface $con = null) Return the first ChildUser matching the query and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
55 54
  *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
packages/core/src/Models/User/Map/UserTableMap.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -365,8 +365,8 @@
 block discarded – undo
365 365
      * @throws PropelException Any exceptions caught during processing will be
366 366
      *                         rethrown wrapped into a PropelException.
367 367
      */
368
-     public static function doDelete($values, ConnectionInterface $con = null)
369
-     {
368
+        public static function doDelete($values, ConnectionInterface $con = null)
369
+        {
370 370
         if (null === $con) {
371 371
             $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);
372 372
         }
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
      * first dimension keys are the type constants
118 118
      * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
119 119
      */
120
-    protected static $fieldNames = array (
121
-        self::TYPE_PHPNAME       => array('Id', 'Name', 'Email', 'Password', 'RememberToken', 'CreatedAt', 'UpdatedAt', ),
122
-        self::TYPE_CAMELNAME     => array('id', 'name', 'email', 'password', 'rememberToken', 'createdAt', 'updatedAt', ),
123
-        self::TYPE_COLNAME       => array(UserTableMap::COL_ID, UserTableMap::COL_NAME, UserTableMap::COL_EMAIL, UserTableMap::COL_PASSWORD, UserTableMap::COL_REMEMBER_TOKEN, UserTableMap::COL_CREATED_AT, UserTableMap::COL_UPDATED_AT, ),
124
-        self::TYPE_FIELDNAME     => array('id', 'name', 'email', 'password', 'remember_token', 'created_at', 'updated_at', ),
125
-        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, )
120
+    protected static $fieldNames = array(
121
+        self::TYPE_PHPNAME       => array('Id', 'Name', 'Email', 'Password', 'RememberToken', 'CreatedAt', 'UpdatedAt',),
122
+        self::TYPE_CAMELNAME     => array('id', 'name', 'email', 'password', 'rememberToken', 'createdAt', 'updatedAt',),
123
+        self::TYPE_COLNAME       => array(UserTableMap::COL_ID, UserTableMap::COL_NAME, UserTableMap::COL_EMAIL, UserTableMap::COL_PASSWORD, UserTableMap::COL_REMEMBER_TOKEN, UserTableMap::COL_CREATED_AT, UserTableMap::COL_UPDATED_AT,),
124
+        self::TYPE_FIELDNAME     => array('id', 'name', 'email', 'password', 'remember_token', 'created_at', 'updated_at',),
125
+        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6,)
126 126
     );
127 127
 
128 128
     /**
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
131 131
      * first dimension keys are the type constants
132 132
      * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
133 133
      */
134
-    protected static $fieldKeys = array (
135
-        self::TYPE_PHPNAME       => array('Id' => 0, 'Name' => 1, 'Email' => 2, 'Password' => 3, 'RememberToken' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, ),
136
-        self::TYPE_CAMELNAME     => array('id' => 0, 'name' => 1, 'email' => 2, 'password' => 3, 'rememberToken' => 4, 'createdAt' => 5, 'updatedAt' => 6, ),
137
-        self::TYPE_COLNAME       => array(UserTableMap::COL_ID => 0, UserTableMap::COL_NAME => 1, UserTableMap::COL_EMAIL => 2, UserTableMap::COL_PASSWORD => 3, UserTableMap::COL_REMEMBER_TOKEN => 4, UserTableMap::COL_CREATED_AT => 5, UserTableMap::COL_UPDATED_AT => 6, ),
138
-        self::TYPE_FIELDNAME     => array('id' => 0, 'name' => 1, 'email' => 2, 'password' => 3, 'remember_token' => 4, 'created_at' => 5, 'updated_at' => 6, ),
139
-        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6, )
134
+    protected static $fieldKeys = array(
135
+        self::TYPE_PHPNAME       => array('Id' => 0, 'Name' => 1, 'Email' => 2, 'Password' => 3, 'RememberToken' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6,),
136
+        self::TYPE_CAMELNAME     => array('id' => 0, 'name' => 1, 'email' => 2, 'password' => 3, 'rememberToken' => 4, 'createdAt' => 5, 'updatedAt' => 6,),
137
+        self::TYPE_COLNAME       => array(UserTableMap::COL_ID => 0, UserTableMap::COL_NAME => 1, UserTableMap::COL_EMAIL => 2, UserTableMap::COL_PASSWORD => 3, UserTableMap::COL_REMEMBER_TOKEN => 4, UserTableMap::COL_CREATED_AT => 5, UserTableMap::COL_UPDATED_AT => 6,),
138
+        self::TYPE_FIELDNAME     => array('id' => 0, 'name' => 1, 'email' => 2, 'password' => 3, 'remember_token' => 4, 'created_at' => 5, 'updated_at' => 6,),
139
+        self::TYPE_NUM           => array(0, 1, 2, 3, 4, 5, 6,)
140 140
     );
141 141
 
142 142
     /**
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public function getBehaviors()
182 182
     {
183 183
         return array(
184
-            'validate' => array('rule1' => array ('column' => 'email','validator' => 'Email',), ),
184
+            'validate' => array('rule1' => array('column' => 'email', 'validator' => 'Email',),),
185 185
         );
186 186
     } // getBehaviors()
187 187
 
@@ -440,8 +440,8 @@  discard block
 block discarded – undo
440 440
             $criteria = $criteria->buildCriteria(); // build Criteria from User object
441 441
         }
442 442
 
443
-        if ($criteria->containsKey(UserTableMap::COL_ID) && $criteria->keyContainsValue(UserTableMap::COL_ID) ) {
444
-            throw new PropelException('Cannot insert a value for auto-increment primary key ('.UserTableMap::COL_ID.')');
443
+        if ($criteria->containsKey(UserTableMap::COL_ID) && $criteria->keyContainsValue(UserTableMap::COL_ID)) {
444
+            throw new PropelException('Cannot insert a value for auto-increment primary key (' . UserTableMap::COL_ID . ')');
445 445
         }
446 446
 
447 447
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 
451 451
         // use transaction because $criteria could contain info
452 452
         // for more than one table (I guess, conceivably)
453
-        return $con->transaction(function () use ($con, $query) {
453
+        return $con->transaction(function() use ($con, $query) {
454 454
             return $query->doInsert($con);
455 455
         });
456 456
     }
Please login to merge, or discard this patch.