Completed
Push — master ( 39ab59...2867e6 )
by dima
03:43
created
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('rule5' => array ('column' => 'email','validator' => 'Email',), ),
184
+            'validate' => array('rule5' => 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.
packages/selfprice/src/Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 class Test
11 11
 {
12
-    function run(){
12
+    function run() {
13 13
         echo "test run";
14 14
     }
15 15
 }
Please login to merge, or discard this patch.
packages/selfprice/src/Models/Selfprice/Base/SelfpriceQuery.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/selfprice/src/Models/Selfprice/Map/SelfpriceTableMap.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
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
      * first dimension keys are the type constants
103 103
      * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
104 104
      */
105
-    protected static $fieldNames = array (
106
-        self::TYPE_PHPNAME       => array('Id', 'Name', 'Datecreate', 'Desc', ),
107
-        self::TYPE_CAMELNAME     => array('id', 'name', 'datecreate', 'desc', ),
108
-        self::TYPE_COLNAME       => array(SelfpriceTableMap::COL_ID, SelfpriceTableMap::COL_NAME, SelfpriceTableMap::COL_DATECREATE, SelfpriceTableMap::COL_DESC, ),
109
-        self::TYPE_FIELDNAME     => array('id', 'name', 'datecreate', 'desc', ),
110
-        self::TYPE_NUM           => array(0, 1, 2, 3, )
105
+    protected static $fieldNames = array(
106
+        self::TYPE_PHPNAME       => array('Id', 'Name', 'Datecreate', 'Desc',),
107
+        self::TYPE_CAMELNAME     => array('id', 'name', 'datecreate', 'desc',),
108
+        self::TYPE_COLNAME       => array(SelfpriceTableMap::COL_ID, SelfpriceTableMap::COL_NAME, SelfpriceTableMap::COL_DATECREATE, SelfpriceTableMap::COL_DESC,),
109
+        self::TYPE_FIELDNAME     => array('id', 'name', 'datecreate', 'desc',),
110
+        self::TYPE_NUM           => array(0, 1, 2, 3,)
111 111
     );
112 112
 
113 113
     /**
@@ -116,12 +116,12 @@  discard block
 block discarded – undo
116 116
      * first dimension keys are the type constants
117 117
      * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
118 118
      */
119
-    protected static $fieldKeys = array (
120
-        self::TYPE_PHPNAME       => array('Id' => 0, 'Name' => 1, 'Datecreate' => 2, 'Desc' => 3, ),
121
-        self::TYPE_CAMELNAME     => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3, ),
122
-        self::TYPE_COLNAME       => array(SelfpriceTableMap::COL_ID => 0, SelfpriceTableMap::COL_NAME => 1, SelfpriceTableMap::COL_DATECREATE => 2, SelfpriceTableMap::COL_DESC => 3, ),
123
-        self::TYPE_FIELDNAME     => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3, ),
124
-        self::TYPE_NUM           => array(0, 1, 2, 3, )
119
+    protected static $fieldKeys = array(
120
+        self::TYPE_PHPNAME       => array('Id' => 0, 'Name' => 1, 'Datecreate' => 2, 'Desc' => 3,),
121
+        self::TYPE_CAMELNAME     => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3,),
122
+        self::TYPE_COLNAME       => array(SelfpriceTableMap::COL_ID => 0, SelfpriceTableMap::COL_NAME => 1, SelfpriceTableMap::COL_DATECREATE => 2, SelfpriceTableMap::COL_DESC => 3,),
123
+        self::TYPE_FIELDNAME     => array('id' => 0, 'name' => 1, 'datecreate' => 2, 'desc' => 3,),
124
+        self::TYPE_NUM           => array(0, 1, 2, 3,)
125 125
     );
126 126
 
127 127
     /**
@@ -403,8 +403,8 @@  discard block
 block discarded – undo
403 403
             $criteria = $criteria->buildCriteria(); // build Criteria from Selfprice object
404 404
         }
405 405
 
406
-        if ($criteria->containsKey(SelfpriceTableMap::COL_ID) && $criteria->keyContainsValue(SelfpriceTableMap::COL_ID) ) {
407
-            throw new PropelException('Cannot insert a value for auto-increment primary key ('.SelfpriceTableMap::COL_ID.')');
406
+        if ($criteria->containsKey(SelfpriceTableMap::COL_ID) && $criteria->keyContainsValue(SelfpriceTableMap::COL_ID)) {
407
+            throw new PropelException('Cannot insert a value for auto-increment primary key (' . SelfpriceTableMap::COL_ID . ')');
408 408
         }
409 409
 
410 410
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 
414 414
         // use transaction because $criteria could contain info
415 415
         // for more than one table (I guess, conceivably)
416
-        return $con->transaction(function () use ($con, $query) {
416
+        return $con->transaction(function() use ($con, $query) {
417 417
             return $query->doInsert($con);
418 418
         });
419 419
     }
Please login to merge, or discard this patch.
db/migrations/PropelMigration_1475694269.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function getUpSQL()
39 39
     {
40 40
         return array (
41
-  'default' => '
41
+    'default' => '
42 42
 # This is a fix for InnoDB in MySQL >= 4.1.x
43 43
 # It "suspends judgement" for fkey relationships until are tables are set.
44 44
 SET FOREIGN_KEY_CHECKS = 0;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function getDownSQL()
69 69
     {
70 70
         return array (
71
-  'default' => '
71
+    'default' => '
72 72
 # This is a fix for InnoDB in MySQL >= 4.1.x
73 73
 # It "suspends judgement" for fkey relationships until are tables are set.
74 74
 SET FOREIGN_KEY_CHECKS = 0;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getUpSQL()
39 39
     {
40
-        return array (
40
+        return array(
41 41
   'default' => '
42 42
 # This is a fix for InnoDB in MySQL >= 4.1.x
43 43
 # It "suspends judgement" for fkey relationships until are tables are set.
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getDownSQL()
69 69
     {
70
-        return array (
70
+        return array(
71 71
   'default' => '
72 72
 # This is a fix for InnoDB in MySQL >= 4.1.x
73 73
 # It "suspends judgement" for fkey relationships until are tables are set.
Please login to merge, or discard this patch.
db/migrations/PropelMigration_1475699554.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function getUpSQL()
39 39
     {
40 40
         return array (
41
-  'default' => '
41
+    'default' => '
42 42
 # This is a fix for InnoDB in MySQL >= 4.1.x
43 43
 # It "suspends judgement" for fkey relationships until are tables are set.
44 44
 SET FOREIGN_KEY_CHECKS = 0;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function getDownSQL()
69 69
     {
70 70
         return array (
71
-  'default' => '
71
+    'default' => '
72 72
 # This is a fix for InnoDB in MySQL >= 4.1.x
73 73
 # It "suspends judgement" for fkey relationships until are tables are set.
74 74
 SET FOREIGN_KEY_CHECKS = 0;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getUpSQL()
39 39
     {
40
-        return array (
40
+        return array(
41 41
   'default' => '
42 42
 # This is a fix for InnoDB in MySQL >= 4.1.x
43 43
 # It "suspends judgement" for fkey relationships until are tables are set.
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getDownSQL()
69 69
     {
70
-        return array (
70
+        return array(
71 71
   'default' => '
72 72
 # This is a fix for InnoDB in MySQL >= 4.1.x
73 73
 # It "suspends judgement" for fkey relationships until are tables are set.
Please login to merge, or discard this patch.
bootstrap/container.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -20,30 +20,30 @@
 block discarded – undo
20 20
  * set Monolog
21 21
  */
22 22
 $container->share(Monolog\Logger::class)
23
-		->withArgument('myLogger')
24
-		;
23
+        ->withArgument('myLogger')
24
+        ;
25 25
 
26 26
 /**
27 27
  * set Propel2 Logger
28 28
  */
29 29
 Propel\Runtime\Propel::getServiceContainer()->setLogger('defaultLogger', (new Monolog\Logger('defaultLogger'))
30
-		->pushHandler(new Monolog\Handler\StreamHandler('php://stderr')));
30
+        ->pushHandler(new Monolog\Handler\StreamHandler('php://stderr')));
31 31
 
32 32
 /**
33 33
  * set Debug bar
34 34
  */
35 35
 $container->add(DebugBar\StandardDebugBar::class)
36
-		->withMethodCall("addCollector",[
37
-			new DebugBar\Bridge\Twig\TwigCollector(
38
-					new DebugBar\Bridge\Twig\TraceableTwigEnvironment($container->get(Twig_Environment::class))
39
-					)
40
-		])
41
-		->withMethodCall("addCollector",[
42
-			new DebugBar\Bridge\Propel2Collector(Propel\Runtime\Propel::getConnection())
43
-		])
44
-		->withMethodCall("addCollector",[
45
-			new \DebugBar\Bridge\MonologCollector($container->get(Monolog\Logger::class))
46
-		])
36
+        ->withMethodCall("addCollector",[
37
+            new DebugBar\Bridge\Twig\TwigCollector(
38
+                    new DebugBar\Bridge\Twig\TraceableTwigEnvironment($container->get(Twig_Environment::class))
39
+                    )
40
+        ])
41
+        ->withMethodCall("addCollector",[
42
+            new DebugBar\Bridge\Propel2Collector(Propel\Runtime\Propel::getConnection())
43
+        ])
44
+        ->withMethodCall("addCollector",[
45
+            new \DebugBar\Bridge\MonologCollector($container->get(Monolog\Logger::class))
46
+        ])
47 47
 ;
48 48
 
49 49
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
33 33
  * set Debug bar
34 34
  */
35 35
 $container->add(DebugBar\StandardDebugBar::class)
36
-		->withMethodCall("addCollector",[
36
+		->withMethodCall("addCollector", [
37 37
 			new DebugBar\Bridge\Twig\TwigCollector(
38 38
 					new DebugBar\Bridge\Twig\TraceableTwigEnvironment($container->get(Twig_Environment::class))
39 39
 					)
40 40
 		])
41
-		->withMethodCall("addCollector",[
41
+		->withMethodCall("addCollector", [
42 42
 			new DebugBar\Bridge\Propel2Collector(Propel\Runtime\Propel::getConnection())
43 43
 		])
44
-		->withMethodCall("addCollector",[
44
+		->withMethodCall("addCollector", [
45 45
 			new \DebugBar\Bridge\MonologCollector($container->get(Monolog\Logger::class))
46 46
 		])
47 47
 ;
Please login to merge, or discard this patch.
packages/core/src/ServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
 class ServiceProvider extends AbstractServiceProvider
13 13
 {
14 14
 
15
-	protected $provides = [
15
+    protected $provides = [
16 16
 
17
-	];
17
+    ];
18 18
 
19
-	public function register()
20
-	{
19
+    public function register()
20
+    {
21 21
 		
22
-	}
22
+    }
23 23
 }
Please login to merge, or discard this patch.