@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * |
| 291 | 291 | * @param string $msg |
| 292 | 292 | * @param int $priority One of the Propel::LOG_* logging levels |
| 293 | - * @return boolean |
|
| 293 | + * @return boolean|null |
|
| 294 | 294 | */ |
| 295 | 295 | protected function log($msg, $priority = Propel::LOG_INFO) |
| 296 | 296 | { |
@@ -977,7 +977,7 @@ discard block |
||
| 977 | 977 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
| 978 | 978 | * The default key type is the column's TableMap::TYPE_PHPNAME. |
| 979 | 979 | * |
| 980 | - * @param mixed $parser A AbstractParser instance, |
|
| 980 | + * @param string $parser A AbstractParser instance, |
|
| 981 | 981 | * or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| 982 | 982 | * @param string $data The source data to import from |
| 983 | 983 | * @param string $keyType The type of keys the array uses. |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | $propertyNames = []; |
| 331 | 331 | $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC)); |
| 332 | 332 | |
| 333 | - foreach($serializableProperties as $property) { |
|
| 333 | + foreach ($serializableProperties as $property) { |
|
| 334 | 334 | $propertyNames[] = $property->getName(); |
| 335 | 335 | } |
| 336 | 336 | |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | $con = Propel::getServiceContainer()->getWriteConnection(ChannelTableMap::DATABASE_NAME); |
| 573 | 573 | } |
| 574 | 574 | |
| 575 | - $con->transaction(function () use ($con) { |
|
| 575 | + $con->transaction(function() use ($con) { |
|
| 576 | 576 | $deleteQuery = ChildChannelQuery::create() |
| 577 | 577 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 578 | 578 | $ret = $this->preDelete($con); |
@@ -607,7 +607,7 @@ discard block |
||
| 607 | 607 | $con = Propel::getServiceContainer()->getWriteConnection(ChannelTableMap::DATABASE_NAME); |
| 608 | 608 | } |
| 609 | 609 | |
| 610 | - return $con->transaction(function () use ($con) { |
|
| 610 | + return $con->transaction(function() use ($con) { |
|
| 611 | 611 | $isInsert = $this->isNew(); |
| 612 | 612 | $ret = $this->preSave($con); |
| 613 | 613 | if ($isInsert) { |
@@ -868,7 +868,7 @@ discard block |
||
| 868 | 868 | $key = 'Instance'; |
| 869 | 869 | } |
| 870 | 870 | |
| 871 | - $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 871 | + $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 872 | 872 | } |
| 873 | 873 | if (null !== $this->collSubscriptions) { |
| 874 | 874 | |
@@ -1273,7 +1273,7 @@ discard block |
||
| 1273 | 1273 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1274 | 1274 | { |
| 1275 | 1275 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
| 1276 | - if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1276 | + if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1277 | 1277 | if ($this->isNew() && null === $this->collSubscriptions) { |
| 1278 | 1278 | // return empty collection |
| 1279 | 1279 | $this->initSubscriptions(); |
@@ -1411,7 +1411,7 @@ discard block |
||
| 1411 | 1411 | */ |
| 1412 | 1412 | protected function doAddSubscription(ChildSubscription $subscription) |
| 1413 | 1413 | { |
| 1414 | - $this->collSubscriptions[]= $subscription; |
|
| 1414 | + $this->collSubscriptions[] = $subscription; |
|
| 1415 | 1415 | $subscription->setChannel($this); |
| 1416 | 1416 | } |
| 1417 | 1417 | |
@@ -1428,7 +1428,7 @@ discard block |
||
| 1428 | 1428 | $this->subscriptionsScheduledForDeletion = clone $this->collSubscriptions; |
| 1429 | 1429 | $this->subscriptionsScheduledForDeletion->clear(); |
| 1430 | 1430 | } |
| 1431 | - $this->subscriptionsScheduledForDeletion[]= clone $subscription; |
|
| 1431 | + $this->subscriptionsScheduledForDeletion[] = clone $subscription; |
|
| 1432 | 1432 | $subscription->setChannel(null); |
| 1433 | 1433 | } |
| 1434 | 1434 | |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | * $obj = $c->findPk(12, $con); |
| 129 | 129 | * </code> |
| 130 | 130 | * |
| 131 | - * @param mixed $key Primary key to use for the query |
|
| 131 | + * @param integer $key Primary key to use for the query |
|
| 132 | 132 | * @param ConnectionInterface $con an optional connection object |
| 133 | 133 | * |
| 134 | 134 | * @return ChildChannel|array|mixed the result, formatted by the current formatter |
@@ -537,7 +537,7 @@ discard block |
||
| 537 | 537 | |
| 538 | 538 | // use transaction because $criteria could contain info |
| 539 | 539 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 540 | - return $con->transaction(function () use ($con) { |
|
| 540 | + return $con->transaction(function() use ($con) { |
|
| 541 | 541 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 542 | 542 | $affectedRows += parent::doDeleteAll($con); |
| 543 | 543 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | |
| 573 | 573 | // use transaction because $criteria could contain info |
| 574 | 574 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 575 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 575 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 576 | 576 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 577 | 577 | |
| 578 | 578 | ChannelTableMap::removeInstanceFromPool($criteria); |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | * |
| 304 | 304 | * @param string $msg |
| 305 | 305 | * @param int $priority One of the Propel::LOG_* logging levels |
| 306 | - * @return boolean |
|
| 306 | + * @return boolean|null |
|
| 307 | 307 | */ |
| 308 | 308 | protected function log($msg, $priority = Propel::LOG_INFO) |
| 309 | 309 | { |
@@ -1147,7 +1147,7 @@ discard block |
||
| 1147 | 1147 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
| 1148 | 1148 | * The default key type is the column's TableMap::TYPE_PHPNAME. |
| 1149 | 1149 | * |
| 1150 | - * @param mixed $parser A AbstractParser instance, |
|
| 1150 | + * @param string $parser A AbstractParser instance, |
|
| 1151 | 1151 | * or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| 1152 | 1152 | * @param string $data The source data to import from |
| 1153 | 1153 | * @param string $keyType The type of keys the array uses. |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | $propertyNames = []; |
| 344 | 344 | $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC)); |
| 345 | 345 | |
| 346 | - foreach($serializableProperties as $property) { |
|
| 346 | + foreach ($serializableProperties as $property) { |
|
| 347 | 347 | $propertyNames[] = $property->getName(); |
| 348 | 348 | } |
| 349 | 349 | |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | $con = Propel::getServiceContainer()->getWriteConnection(ConnectionTableMap::DATABASE_NAME); |
| 701 | 701 | } |
| 702 | 702 | |
| 703 | - $con->transaction(function () use ($con) { |
|
| 703 | + $con->transaction(function() use ($con) { |
|
| 704 | 704 | $deleteQuery = ChildConnectionQuery::create() |
| 705 | 705 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 706 | 706 | $ret = $this->preDelete($con); |
@@ -735,7 +735,7 @@ discard block |
||
| 735 | 735 | $con = Propel::getServiceContainer()->getWriteConnection(ConnectionTableMap::DATABASE_NAME); |
| 736 | 736 | } |
| 737 | 737 | |
| 738 | - return $con->transaction(function () use ($con) { |
|
| 738 | + return $con->transaction(function() use ($con) { |
|
| 739 | 739 | $isInsert = $this->isNew(); |
| 740 | 740 | $ret = $this->preSave($con); |
| 741 | 741 | if ($isInsert) { |
@@ -1020,7 +1020,7 @@ discard block |
||
| 1020 | 1020 | $key = 'Instance'; |
| 1021 | 1021 | } |
| 1022 | 1022 | |
| 1023 | - $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1023 | + $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1024 | 1024 | } |
| 1025 | 1025 | if (null !== $this->aUser) { |
| 1026 | 1026 | |
@@ -1035,7 +1035,7 @@ discard block |
||
| 1035 | 1035 | $key = 'User'; |
| 1036 | 1036 | } |
| 1037 | 1037 | |
| 1038 | - $result[$key] = $this->aUser->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1038 | + $result[$key] = $this->aUser->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1039 | 1039 | } |
| 1040 | 1040 | } |
| 1041 | 1041 | |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | * $query->filterByStarted(array('max' => 'yesterday')); // WHERE started > '2011-03-13' |
| 426 | 426 | * </code> |
| 427 | 427 | * |
| 428 | - * @param mixed $started The value to use as filter. |
|
| 428 | + * @param integer $started The value to use as filter. |
|
| 429 | 429 | * Values can be integers (unix timestamps), DateTime objects, or strings. |
| 430 | 430 | * Empty strings are treated as NULL. |
| 431 | 431 | * Use scalar values for equality. |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | /** |
| 491 | 491 | * Filter the query by a related \Jalle19\StatusManager\Database\Instance object |
| 492 | 492 | * |
| 493 | - * @param \Jalle19\StatusManager\Database\Instance|ObjectCollection $instance The related object(s) to use as filter |
|
| 493 | + * @param Instance $instance The related object(s) to use as filter |
|
| 494 | 494 | * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL |
| 495 | 495 | * |
| 496 | 496 | * @throws \Propel\Runtime\Exception\PropelException |
@@ -567,7 +567,7 @@ discard block |
||
| 567 | 567 | /** |
| 568 | 568 | * Filter the query by a related \Jalle19\StatusManager\Database\User object |
| 569 | 569 | * |
| 570 | - * @param \Jalle19\StatusManager\Database\User|ObjectCollection $user The related object(s) to use as filter |
|
| 570 | + * @param User $user The related object(s) to use as filter |
|
| 571 | 571 | * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL |
| 572 | 572 | * |
| 573 | 573 | * @throws \Propel\Runtime\Exception\PropelException |
@@ -671,7 +671,7 @@ discard block |
||
| 671 | 671 | |
| 672 | 672 | // use transaction because $criteria could contain info |
| 673 | 673 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 674 | - return $con->transaction(function () use ($con) { |
|
| 674 | + return $con->transaction(function() use ($con) { |
|
| 675 | 675 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 676 | 676 | $affectedRows += parent::doDeleteAll($con); |
| 677 | 677 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -706,7 +706,7 @@ discard block |
||
| 706 | 706 | |
| 707 | 707 | // use transaction because $criteria could contain info |
| 708 | 708 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 709 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 709 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 710 | 710 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 711 | 711 | |
| 712 | 712 | ConnectionTableMap::removeInstanceFromPool($criteria); |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | * |
| 315 | 315 | * @param string $msg |
| 316 | 316 | * @param int $priority One of the Propel::LOG_* logging levels |
| 317 | - * @return boolean |
|
| 317 | + * @return boolean|null |
|
| 318 | 318 | */ |
| 319 | 319 | protected function log($msg, $priority = Propel::LOG_INFO) |
| 320 | 320 | { |
@@ -758,7 +758,7 @@ discard block |
||
| 758 | 758 | * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME |
| 759 | 759 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
| 760 | 760 | * Defaults to TableMap::TYPE_PHPNAME. |
| 761 | - * @return mixed Value of field. |
|
| 761 | + * @return string|null Value of field. |
|
| 762 | 762 | */ |
| 763 | 763 | public function getByName($name, $type = TableMap::TYPE_PHPNAME) |
| 764 | 764 | { |
@@ -773,7 +773,7 @@ discard block |
||
| 773 | 773 | * Zero-based. |
| 774 | 774 | * |
| 775 | 775 | * @param int $pos position in xml schema |
| 776 | - * @return mixed Value of field at $pos |
|
| 776 | + * @return string|null Value of field at $pos |
|
| 777 | 777 | */ |
| 778 | 778 | public function getByPosition($pos) |
| 779 | 779 | { |
@@ -959,7 +959,7 @@ discard block |
||
| 959 | 959 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
| 960 | 960 | * The default key type is the column's TableMap::TYPE_PHPNAME. |
| 961 | 961 | * |
| 962 | - * @param mixed $parser A AbstractParser instance, |
|
| 962 | + * @param string $parser A AbstractParser instance, |
|
| 963 | 963 | * or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| 964 | 964 | * @param string $data The source data to import from |
| 965 | 965 | * @param string $keyType The type of keys the array uses. |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $propertyNames = []; |
| 355 | 355 | $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC)); |
| 356 | 356 | |
| 357 | - foreach($serializableProperties as $property) { |
|
| 357 | + foreach ($serializableProperties as $property) { |
|
| 358 | 358 | $propertyNames[] = $property->getName(); |
| 359 | 359 | } |
| 360 | 360 | |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | $con = Propel::getServiceContainer()->getWriteConnection(InstanceTableMap::DATABASE_NAME); |
| 529 | 529 | } |
| 530 | 530 | |
| 531 | - $con->transaction(function () use ($con) { |
|
| 531 | + $con->transaction(function() use ($con) { |
|
| 532 | 532 | $deleteQuery = ChildInstanceQuery::create() |
| 533 | 533 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 534 | 534 | $ret = $this->preDelete($con); |
@@ -563,7 +563,7 @@ discard block |
||
| 563 | 563 | $con = Propel::getServiceContainer()->getWriteConnection(InstanceTableMap::DATABASE_NAME); |
| 564 | 564 | } |
| 565 | 565 | |
| 566 | - return $con->transaction(function () use ($con) { |
|
| 566 | + return $con->transaction(function() use ($con) { |
|
| 567 | 567 | $isInsert = $this->isNew(); |
| 568 | 568 | $ret = $this->preSave($con); |
| 569 | 569 | if ($isInsert) { |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | |
| 708 | 708 | // check the columns in natural order for more readable SQL queries |
| 709 | 709 | if ($this->isColumnModified(InstanceTableMap::COL_NAME)) { |
| 710 | - $modifiedColumns[':p' . $index++] = 'name'; |
|
| 710 | + $modifiedColumns[':p' . $index++] = 'name'; |
|
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | $sql = sprintf( |
@@ -1223,7 +1223,7 @@ discard block |
||
| 1223 | 1223 | public function getUsers(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1224 | 1224 | { |
| 1225 | 1225 | $partial = $this->collUsersPartial && !$this->isNew(); |
| 1226 | - if (null === $this->collUsers || null !== $criteria || $partial) { |
|
| 1226 | + if (null === $this->collUsers || null !== $criteria || $partial) { |
|
| 1227 | 1227 | if ($this->isNew() && null === $this->collUsers) { |
| 1228 | 1228 | // return empty collection |
| 1229 | 1229 | $this->initUsers(); |
@@ -1361,7 +1361,7 @@ discard block |
||
| 1361 | 1361 | */ |
| 1362 | 1362 | protected function doAddUser(ChildUser $user) |
| 1363 | 1363 | { |
| 1364 | - $this->collUsers[]= $user; |
|
| 1364 | + $this->collUsers[] = $user; |
|
| 1365 | 1365 | $user->setInstance($this); |
| 1366 | 1366 | } |
| 1367 | 1367 | |
@@ -1378,7 +1378,7 @@ discard block |
||
| 1378 | 1378 | $this->usersScheduledForDeletion = clone $this->collUsers; |
| 1379 | 1379 | $this->usersScheduledForDeletion->clear(); |
| 1380 | 1380 | } |
| 1381 | - $this->usersScheduledForDeletion[]= clone $user; |
|
| 1381 | + $this->usersScheduledForDeletion[] = clone $user; |
|
| 1382 | 1382 | $user->setInstance(null); |
| 1383 | 1383 | } |
| 1384 | 1384 | |
@@ -1448,7 +1448,7 @@ discard block |
||
| 1448 | 1448 | public function getConnections(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1449 | 1449 | { |
| 1450 | 1450 | $partial = $this->collConnectionsPartial && !$this->isNew(); |
| 1451 | - if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1451 | + if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1452 | 1452 | if ($this->isNew() && null === $this->collConnections) { |
| 1453 | 1453 | // return empty collection |
| 1454 | 1454 | $this->initConnections(); |
@@ -1586,7 +1586,7 @@ discard block |
||
| 1586 | 1586 | */ |
| 1587 | 1587 | protected function doAddConnection(ChildConnection $connection) |
| 1588 | 1588 | { |
| 1589 | - $this->collConnections[]= $connection; |
|
| 1589 | + $this->collConnections[] = $connection; |
|
| 1590 | 1590 | $connection->setInstance($this); |
| 1591 | 1591 | } |
| 1592 | 1592 | |
@@ -1603,7 +1603,7 @@ discard block |
||
| 1603 | 1603 | $this->connectionsScheduledForDeletion = clone $this->collConnections; |
| 1604 | 1604 | $this->connectionsScheduledForDeletion->clear(); |
| 1605 | 1605 | } |
| 1606 | - $this->connectionsScheduledForDeletion[]= clone $connection; |
|
| 1606 | + $this->connectionsScheduledForDeletion[] = clone $connection; |
|
| 1607 | 1607 | $connection->setInstance(null); |
| 1608 | 1608 | } |
| 1609 | 1609 | |
@@ -1698,7 +1698,7 @@ discard block |
||
| 1698 | 1698 | public function getChannels(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1699 | 1699 | { |
| 1700 | 1700 | $partial = $this->collChannelsPartial && !$this->isNew(); |
| 1701 | - if (null === $this->collChannels || null !== $criteria || $partial) { |
|
| 1701 | + if (null === $this->collChannels || null !== $criteria || $partial) { |
|
| 1702 | 1702 | if ($this->isNew() && null === $this->collChannels) { |
| 1703 | 1703 | // return empty collection |
| 1704 | 1704 | $this->initChannels(); |
@@ -1836,7 +1836,7 @@ discard block |
||
| 1836 | 1836 | */ |
| 1837 | 1837 | protected function doAddChannel(ChildChannel $channel) |
| 1838 | 1838 | { |
| 1839 | - $this->collChannels[]= $channel; |
|
| 1839 | + $this->collChannels[] = $channel; |
|
| 1840 | 1840 | $channel->setInstance($this); |
| 1841 | 1841 | } |
| 1842 | 1842 | |
@@ -1853,7 +1853,7 @@ discard block |
||
| 1853 | 1853 | $this->channelsScheduledForDeletion = clone $this->collChannels; |
| 1854 | 1854 | $this->channelsScheduledForDeletion->clear(); |
| 1855 | 1855 | } |
| 1856 | - $this->channelsScheduledForDeletion[]= clone $channel; |
|
| 1856 | + $this->channelsScheduledForDeletion[] = clone $channel; |
|
| 1857 | 1857 | $channel->setInstance(null); |
| 1858 | 1858 | } |
| 1859 | 1859 | |
@@ -1923,7 +1923,7 @@ discard block |
||
| 1923 | 1923 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1924 | 1924 | { |
| 1925 | 1925 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
| 1926 | - if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1926 | + if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1927 | 1927 | if ($this->isNew() && null === $this->collSubscriptions) { |
| 1928 | 1928 | // return empty collection |
| 1929 | 1929 | $this->initSubscriptions(); |
@@ -2061,7 +2061,7 @@ discard block |
||
| 2061 | 2061 | */ |
| 2062 | 2062 | protected function doAddSubscription(ChildSubscription $subscription) |
| 2063 | 2063 | { |
| 2064 | - $this->collSubscriptions[]= $subscription; |
|
| 2064 | + $this->collSubscriptions[] = $subscription; |
|
| 2065 | 2065 | $subscription->setInstance($this); |
| 2066 | 2066 | } |
| 2067 | 2067 | |
@@ -2078,7 +2078,7 @@ discard block |
||
| 2078 | 2078 | $this->subscriptionsScheduledForDeletion = clone $this->collSubscriptions; |
| 2079 | 2079 | $this->subscriptionsScheduledForDeletion->clear(); |
| 2080 | 2080 | } |
| 2081 | - $this->subscriptionsScheduledForDeletion[]= clone $subscription; |
|
| 2081 | + $this->subscriptionsScheduledForDeletion[] = clone $subscription; |
|
| 2082 | 2082 | $subscription->setInstance(null); |
| 2083 | 2083 | } |
| 2084 | 2084 | |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | * $obj = $c->findPk(12, $con); |
| 139 | 139 | * </code> |
| 140 | 140 | * |
| 141 | - * @param mixed $key Primary key to use for the query |
|
| 141 | + * @param string $key Primary key to use for the query |
|
| 142 | 142 | * @param ConnectionInterface $con an optional connection object |
| 143 | 143 | * |
| 144 | 144 | * @return ChildInstance|array|mixed the result, formatted by the current formatter |
@@ -619,7 +619,7 @@ discard block |
||
| 619 | 619 | |
| 620 | 620 | // use transaction because $criteria could contain info |
| 621 | 621 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 622 | - return $con->transaction(function () use ($con) { |
|
| 622 | + return $con->transaction(function() use ($con) { |
|
| 623 | 623 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 624 | 624 | $affectedRows += parent::doDeleteAll($con); |
| 625 | 625 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | |
| 655 | 655 | // use transaction because $criteria could contain info |
| 656 | 656 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 657 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 657 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 658 | 658 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 659 | 659 | |
| 660 | 660 | InstanceTableMap::removeInstanceFromPool($criteria); |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | * |
| 332 | 332 | * @param string $msg |
| 333 | 333 | * @param int $priority One of the Propel::LOG_* logging levels |
| 334 | - * @return boolean |
|
| 334 | + * @return boolean|null |
|
| 335 | 335 | */ |
| 336 | 336 | protected function log($msg, $priority = Propel::LOG_INFO) |
| 337 | 337 | { |
@@ -1366,7 +1366,7 @@ discard block |
||
| 1366 | 1366 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
| 1367 | 1367 | * The default key type is the column's TableMap::TYPE_PHPNAME. |
| 1368 | 1368 | * |
| 1369 | - * @param mixed $parser A AbstractParser instance, |
|
| 1369 | + * @param string $parser A AbstractParser instance, |
|
| 1370 | 1370 | * or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| 1371 | 1371 | * @param string $data The source data to import from |
| 1372 | 1372 | * @param string $keyType The type of keys the array uses. |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | $propertyNames = []; |
| 372 | 372 | $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC)); |
| 373 | 373 | |
| 374 | - foreach($serializableProperties as $property) { |
|
| 374 | + foreach ($serializableProperties as $property) { |
|
| 375 | 375 | $propertyNames[] = $property->getName(); |
| 376 | 376 | } |
| 377 | 377 | |
@@ -845,7 +845,7 @@ discard block |
||
| 845 | 845 | $con = Propel::getServiceContainer()->getWriteConnection(SubscriptionTableMap::DATABASE_NAME); |
| 846 | 846 | } |
| 847 | 847 | |
| 848 | - $con->transaction(function () use ($con) { |
|
| 848 | + $con->transaction(function() use ($con) { |
|
| 849 | 849 | $deleteQuery = ChildSubscriptionQuery::create() |
| 850 | 850 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 851 | 851 | $ret = $this->preDelete($con); |
@@ -880,7 +880,7 @@ discard block |
||
| 880 | 880 | $con = Propel::getServiceContainer()->getWriteConnection(SubscriptionTableMap::DATABASE_NAME); |
| 881 | 881 | } |
| 882 | 882 | |
| 883 | - return $con->transaction(function () use ($con) { |
|
| 883 | + return $con->transaction(function() use ($con) { |
|
| 884 | 884 | $isInsert = $this->isNew(); |
| 885 | 885 | $ret = $this->preSave($con); |
| 886 | 886 | if ($isInsert) { |
@@ -1206,7 +1206,7 @@ discard block |
||
| 1206 | 1206 | $key = 'Instance'; |
| 1207 | 1207 | } |
| 1208 | 1208 | |
| 1209 | - $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1209 | + $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1210 | 1210 | } |
| 1211 | 1211 | if (null !== $this->aUser) { |
| 1212 | 1212 | |
@@ -1221,7 +1221,7 @@ discard block |
||
| 1221 | 1221 | $key = 'User'; |
| 1222 | 1222 | } |
| 1223 | 1223 | |
| 1224 | - $result[$key] = $this->aUser->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1224 | + $result[$key] = $this->aUser->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1225 | 1225 | } |
| 1226 | 1226 | if (null !== $this->aChannel) { |
| 1227 | 1227 | |
@@ -1236,7 +1236,7 @@ discard block |
||
| 1236 | 1236 | $key = 'Channel'; |
| 1237 | 1237 | } |
| 1238 | 1238 | |
| 1239 | - $result[$key] = $this->aChannel->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1239 | + $result[$key] = $this->aChannel->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1240 | 1240 | } |
| 1241 | 1241 | } |
| 1242 | 1242 | |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | * $query->filterBySubscriptionId(array('min' => 12)); // WHERE subscription_id > 12 |
| 465 | 465 | * </code> |
| 466 | 466 | * |
| 467 | - * @param mixed $subscriptionId The value to use as filter. |
|
| 467 | + * @param integer $subscriptionId The value to use as filter. |
|
| 468 | 468 | * Use scalar values for equality. |
| 469 | 469 | * Use array values for in_array() equivalent. |
| 470 | 470 | * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | * $query->filterByStarted(array('max' => 'yesterday')); // WHERE started > '2011-03-13' |
| 506 | 506 | * </code> |
| 507 | 507 | * |
| 508 | - * @param mixed $started The value to use as filter. |
|
| 508 | + * @param integer $started The value to use as filter. |
|
| 509 | 509 | * Values can be integers (unix timestamps), DateTime objects, or strings. |
| 510 | 510 | * Empty strings are treated as NULL. |
| 511 | 511 | * Use scalar values for equality. |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | /** |
| 643 | 643 | * Filter the query by a related \Jalle19\StatusManager\Database\Instance object |
| 644 | 644 | * |
| 645 | - * @param \Jalle19\StatusManager\Database\Instance|ObjectCollection $instance The related object(s) to use as filter |
|
| 645 | + * @param Instance $instance The related object(s) to use as filter |
|
| 646 | 646 | * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL |
| 647 | 647 | * |
| 648 | 648 | * @throws \Propel\Runtime\Exception\PropelException |
@@ -719,7 +719,7 @@ discard block |
||
| 719 | 719 | /** |
| 720 | 720 | * Filter the query by a related \Jalle19\StatusManager\Database\User object |
| 721 | 721 | * |
| 722 | - * @param \Jalle19\StatusManager\Database\User|ObjectCollection $user The related object(s) to use as filter |
|
| 722 | + * @param User $user The related object(s) to use as filter |
|
| 723 | 723 | * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL |
| 724 | 724 | * |
| 725 | 725 | * @throws \Propel\Runtime\Exception\PropelException |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | /** |
| 797 | 797 | * Filter the query by a related \Jalle19\StatusManager\Database\Channel object |
| 798 | 798 | * |
| 799 | - * @param \Jalle19\StatusManager\Database\Channel|ObjectCollection $channel The related object(s) to use as filter |
|
| 799 | + * @param Channel $channel The related object(s) to use as filter |
|
| 800 | 800 | * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL |
| 801 | 801 | * |
| 802 | 802 | * @throws \Propel\Runtime\Exception\PropelException |
@@ -900,7 +900,7 @@ discard block |
||
| 900 | 900 | |
| 901 | 901 | // use transaction because $criteria could contain info |
| 902 | 902 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 903 | - return $con->transaction(function () use ($con) { |
|
| 903 | + return $con->transaction(function() use ($con) { |
|
| 904 | 904 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 905 | 905 | $affectedRows += parent::doDeleteAll($con); |
| 906 | 906 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -935,7 +935,7 @@ discard block |
||
| 935 | 935 | |
| 936 | 936 | // use transaction because $criteria could contain info |
| 937 | 937 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 938 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 938 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 939 | 939 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 940 | 940 | |
| 941 | 941 | SubscriptionTableMap::removeInstanceFromPool($criteria); |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | * |
| 306 | 306 | * @param string $msg |
| 307 | 307 | * @param int $priority One of the Propel::LOG_* logging levels |
| 308 | - * @return boolean |
|
| 308 | + * @return boolean|null |
|
| 309 | 309 | */ |
| 310 | 310 | protected function log($msg, $priority = Propel::LOG_INFO) |
| 311 | 311 | { |
@@ -1028,7 +1028,7 @@ discard block |
||
| 1028 | 1028 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
| 1029 | 1029 | * The default key type is the column's TableMap::TYPE_PHPNAME. |
| 1030 | 1030 | * |
| 1031 | - * @param mixed $parser A AbstractParser instance, |
|
| 1031 | + * @param string $parser A AbstractParser instance, |
|
| 1032 | 1032 | * or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| 1033 | 1033 | * @param string $data The source data to import from |
| 1034 | 1034 | * @param string $keyType The type of keys the array uses. |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | $propertyNames = []; |
| 346 | 346 | $serializableProperties = array_diff($cls->getProperties(), $cls->getProperties(\ReflectionProperty::IS_STATIC)); |
| 347 | 347 | |
| 348 | - foreach($serializableProperties as $property) { |
|
| 348 | + foreach ($serializableProperties as $property) { |
|
| 349 | 349 | $propertyNames[] = $property->getName(); |
| 350 | 350 | } |
| 351 | 351 | |
@@ -589,7 +589,7 @@ discard block |
||
| 589 | 589 | $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME); |
| 590 | 590 | } |
| 591 | 591 | |
| 592 | - $con->transaction(function () use ($con) { |
|
| 592 | + $con->transaction(function() use ($con) { |
|
| 593 | 593 | $deleteQuery = ChildUserQuery::create() |
| 594 | 594 | ->filterByPrimaryKey($this->getPrimaryKey()); |
| 595 | 595 | $ret = $this->preDelete($con); |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME); |
| 625 | 625 | } |
| 626 | 626 | |
| 627 | - return $con->transaction(function () use ($con) { |
|
| 627 | + return $con->transaction(function() use ($con) { |
|
| 628 | 628 | $isInsert = $this->isNew(); |
| 629 | 629 | $ret = $this->preSave($con); |
| 630 | 630 | if ($isInsert) { |
@@ -904,7 +904,7 @@ discard block |
||
| 904 | 904 | $key = 'Instance'; |
| 905 | 905 | } |
| 906 | 906 | |
| 907 | - $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 907 | + $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 908 | 908 | } |
| 909 | 909 | if (null !== $this->collConnections) { |
| 910 | 910 | |
@@ -1333,7 +1333,7 @@ discard block |
||
| 1333 | 1333 | public function getConnections(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1334 | 1334 | { |
| 1335 | 1335 | $partial = $this->collConnectionsPartial && !$this->isNew(); |
| 1336 | - if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1336 | + if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1337 | 1337 | if ($this->isNew() && null === $this->collConnections) { |
| 1338 | 1338 | // return empty collection |
| 1339 | 1339 | $this->initConnections(); |
@@ -1471,7 +1471,7 @@ discard block |
||
| 1471 | 1471 | */ |
| 1472 | 1472 | protected function doAddConnection(ChildConnection $connection) |
| 1473 | 1473 | { |
| 1474 | - $this->collConnections[]= $connection; |
|
| 1474 | + $this->collConnections[] = $connection; |
|
| 1475 | 1475 | $connection->setUser($this); |
| 1476 | 1476 | } |
| 1477 | 1477 | |
@@ -1488,7 +1488,7 @@ discard block |
||
| 1488 | 1488 | $this->connectionsScheduledForDeletion = clone $this->collConnections; |
| 1489 | 1489 | $this->connectionsScheduledForDeletion->clear(); |
| 1490 | 1490 | } |
| 1491 | - $this->connectionsScheduledForDeletion[]= $connection; |
|
| 1491 | + $this->connectionsScheduledForDeletion[] = $connection; |
|
| 1492 | 1492 | $connection->setUser(null); |
| 1493 | 1493 | } |
| 1494 | 1494 | |
@@ -1583,7 +1583,7 @@ discard block |
||
| 1583 | 1583 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
| 1584 | 1584 | { |
| 1585 | 1585 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
| 1586 | - if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1586 | + if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1587 | 1587 | if ($this->isNew() && null === $this->collSubscriptions) { |
| 1588 | 1588 | // return empty collection |
| 1589 | 1589 | $this->initSubscriptions(); |
@@ -1721,7 +1721,7 @@ discard block |
||
| 1721 | 1721 | */ |
| 1722 | 1722 | protected function doAddSubscription(ChildSubscription $subscription) |
| 1723 | 1723 | { |
| 1724 | - $this->collSubscriptions[]= $subscription; |
|
| 1724 | + $this->collSubscriptions[] = $subscription; |
|
| 1725 | 1725 | $subscription->setUser($this); |
| 1726 | 1726 | } |
| 1727 | 1727 | |
@@ -1738,7 +1738,7 @@ discard block |
||
| 1738 | 1738 | $this->subscriptionsScheduledForDeletion = clone $this->collSubscriptions; |
| 1739 | 1739 | $this->subscriptionsScheduledForDeletion->clear(); |
| 1740 | 1740 | } |
| 1741 | - $this->subscriptionsScheduledForDeletion[]= $subscription; |
|
| 1741 | + $this->subscriptionsScheduledForDeletion[] = $subscription; |
|
| 1742 | 1742 | $subscription->setUser(null); |
| 1743 | 1743 | } |
| 1744 | 1744 | |