Completed
Push — master ( 5afb5d...6dae66 )
by dima
05:53
created
app/Controllers/IndexController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 			
103 103
 			
104 104
             return new Response("success create!");
105
-        } catch(\Exception $ex) {
105
+        } catch (\Exception $ex) {
106 106
             return new Response("system error:" . $ex->getMessage());
107 107
         }
108 108
     }
Please login to merge, or discard this patch.
app/Controllers/InstallController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             if (!copy($file->getRealpath(), $root_path . '/db/' . $file->getRelativePathname())) {
28 28
                echo sprintf("error copy migration %s..." . PHP_EOL, $file->getRelativePathname());
29 29
             }
30
-            else{
30
+            else {
31 31
                 echo sprintf("copy migration %s" . PHP_EOL, $file->getRelativePathname());
32 32
             }
33 33
         }
Please login to merge, or discard this patch.
bootstrap/app.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
36 36
     }    
37
-    $whoops->pushHandler(function () {
37
+    $whoops->pushHandler(function() {
38 38
         Response::create('Uh oh, something broke internally.', Response::HTTP_INTERNAL_SERVER_ERROR)->send();
39 39
     });
40 40
 }
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
 Propel\Runtime\Propel::getServiceContainer()->setLogger('defaultLogger', $logger);
59 59
 
60 60
 $container->add(DebugBar\StandardDebugBar::class)
61
-		->withMethodCall("addCollector",[
61
+		->withMethodCall("addCollector", [
62 62
 			new DebugBar\Bridge\Twig\TwigCollector(
63 63
 					new DebugBar\Bridge\Twig\TraceableTwigEnvironment($container->get('Twig_Environment'))
64 64
 					)
65 65
 		])
66
-		->withMethodCall("addCollector",[
66
+		->withMethodCall("addCollector", [
67 67
 			new DebugBar\Bridge\Propel2Collector(Propel\Runtime\Propel::getConnection())
68 68
 		]);
69 69
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 /**
81 81
  * Routes
82 82
  */
83
-$dispatcher = FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $r) {
83
+$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
84 84
     $routes = require __DIR__ . '/routes.php';
85 85
     foreach ($routes as $route) {
86 86
         $r->addRoute($route[0], $route[1], $route[2]);
Please login to merge, or discard this patch.
packages/core/src/Models/Task/Base/TaskQuery.php 1 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/Base/Task.php 1 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/Map/TaskTableMap.php 1 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/UserRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function findById($id)
30 30
     {
31 31
         if (!$User = UserQuery::create()->findPk($id)) {
32
-            throw new \InvalidArgumentException(sprintf('User with ID %d does not exist',$id));
32
+            throw new \InvalidArgumentException(sprintf('User with ID %d does not exist', $id));
33 33
         }
34 34
 
35 35
         return $User;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         
61 61
         
62 62
         if (!$Model->save()) {
63
-            throw new \DomainException(sprintf('User not save',$id));
63
+            throw new \DomainException(sprintf('User not save', $id));
64 64
         }
65 65
 
66 66
         return true;        
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * 
71 71
      * @return \Models\User\Models\User\User $User
72 72
      */
73
-    public function build(){
73
+    public function build() {
74 74
         return new User;
75 75
     }
76 76
 
Please login to merge, or discard this patch.
packages/core/src/Models/User/Base/User.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
             $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);
739 739
         }
740 740
 
741
-        $con->transaction(function () use ($con) {
741
+        $con->transaction(function() use ($con) {
742 742
             $deleteQuery = ChildUserQuery::create()
743 743
                 ->filterByPrimaryKey($this->getPrimaryKey());
744 744
             $ret = $this->preDelete($con);
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
             $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);
774 774
         }
775 775
 
776
-        return $con->transaction(function () use ($con) {
776
+        return $con->transaction(function() use ($con) {
777 777
             $isInsert = $this->isNew();
778 778
             $ret = $this->preSave($con);
779 779
             if ($isInsert) {
@@ -1396,13 +1396,13 @@  discard block
 block discarded – undo
1396 1396
     public function validate(ValidatorInterface $validator = null)
1397 1397
     {
1398 1398
         if (null === $validator) {
1399
-            if(class_exists('Symfony\\Component\\Validator\\Validator\\LegacyValidator')){
1399
+            if (class_exists('Symfony\\Component\\Validator\\Validator\\LegacyValidator')) {
1400 1400
                 $validator = new LegacyValidator(
1401 1401
                             new ExecutionContextFactory(new DefaultTranslator()),
1402 1402
                             new ClassMetaDataFactory(new StaticMethodLoader()),
1403 1403
                             new ConstraintValidatorFactory()
1404 1404
                 );
1405
-            }else{
1405
+            } else {
1406 1406
                 $validator = new Validator(
1407 1407
                             new ClassMetadataFactory(new StaticMethodLoader()),
1408 1408
                             new ConstraintValidatorFactory(),
Please login to merge, or discard this patch.
packages/core/src/Models/User/Base/UserQuery.php 1 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.