Skip to content

Commit

Permalink
typo; codeCoverageIgnore pouziva jednotny zpusob zapisu
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrP committed Feb 26, 2014
1 parent 43a31eb commit 57cddbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Orm/Entity/MetaData/MetaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ public function getMethods($name)
{
static $excludeMethods;
if ($excludeMethods === NULL)
{
// @codeCoverageIgnoreStart
{ // @codeCoverageIgnoreStart
$excludeMethods = get_class_methods('Orm\BaseEntityFragment');
// TODO neumoznuje pouzit vlastni IEntity
} // @codeCoverageIgnoreEnd
Expand Down
3 changes: 1 addition & 2 deletions Orm/Mappers/ArrayMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ protected function lock()
$handle = @fopen($handleParam[0], $handleParam[1]); // @ - file may not already exist

if (!$handle)
{
// @codeCoverageIgnoreStart
{ // @codeCoverageIgnoreStart
throw new ArrayMapperLockException("Unable initialize critical section.");
} // @codeCoverageIgnoreEnd
flock(self::$lock = $handle, LOCK_EX);
Expand Down
3 changes: 1 addition & 2 deletions Orm/Mappers/Collection/DataSourceCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ final public function getDataSource()

static $dsClass;
if ($dsClass === NULL)
{
// @codeCoverageIgnoreStart
{ // @codeCoverageIgnoreStart
$dsClass = 'DibiDataSource';
if (class_exists('DibiDataSourceX'))
{
Expand Down
3 changes: 1 addition & 2 deletions Orm/Mappers/Collection/DibiCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ final private function connectionTranslate($args)
{
static $translate;
if ($translate === NULL)
{
// @codeCoverageIgnoreStart
{ // @codeCoverageIgnoreStart
$translate = method_exists($this->getConnection(), 'translate') ? 'translate' : 'sql';
} // @codeCoverageIgnoreEnd
$args = func_get_args();
Expand Down
3 changes: 1 addition & 2 deletions Orm/Mappers/DibiMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ protected function dataSource()
$connection = $this->getConnection();
$connection->getDriver(); // v novem dibi se tady connectne
if (!$connection->isConnected())
{
// @codeCoverageIgnoreStart
{ // @codeCoverageIgnoreStart
$connection->sql(''); // protoze nema public metodu DibiConnection::connect()
} // @codeCoverageIgnoreEnd
$translator = new DibiTranslator($dibiTranslatorVersion === 'connection' ? $connection : $connection->getDriver());
Expand Down

0 comments on commit 57cddbf

Please sign in to comment.