Skip to content

Commit

Permalink
Fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 25, 2017
1 parent 5a76d37 commit bea2b90
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Database/Connection.php
Expand Up @@ -223,7 +223,7 @@ public function connect()
{
try {
return $this->_driver->connect();
} catch (\Exception $e) {
} catch (Exception $e) {
throw new MissingConnectionException(['reason' => $e->getMessage()]);
}
}
Expand Down Expand Up @@ -679,7 +679,7 @@ public function transactional(callable $callback)

try {
$result = $callback($this);
} catch (\Exception $e) {
} catch (Exception $e) {
$this->rollback(false);
throw $e;
}
Expand Down Expand Up @@ -727,7 +727,7 @@ public function disableConstraints(callable $callback)

try {
$result = $callback($this);
} catch (\Exception $e) {
} catch (Exception $e) {
$this->enableForeignKeys();
throw $e;
}
Expand Down
3 changes: 2 additions & 1 deletion src/Database/Driver/PDODriverTrait.php
Expand Up @@ -17,6 +17,7 @@
use Cake\Database\Query;
use Cake\Database\Statement\PDOStatement;
use PDO;
use PDOException;

/**
* PDO driver trait
Expand Down Expand Up @@ -90,7 +91,7 @@ public function isConnected()
} else {
try {
$connected = $this->_connection->query('SELECT 1');
} catch (\PDOException $e) {
} catch (PDOException $e) {
$connected = false;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Shell/CacheShell.php
Expand Up @@ -18,6 +18,7 @@
use Cake\Cache\Engine\ApcEngine;
use Cake\Cache\Engine\WincacheEngine;
use Cake\Console\Shell;
use InvalidArgumentException;

/**
* Cache Shell.
Expand Down Expand Up @@ -84,7 +85,7 @@ public function clear($prefix = null)
} else {
$this->out("<success>Cleared $prefix cache</success>");
}
} catch (\InvalidArgumentException $e) {
} catch (InvalidArgumentException $e) {
$this->abort($e->getMessage());
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/TestSuite/IntegrationTestCase.php
Expand Up @@ -32,6 +32,7 @@ class_alias('PHPUnit_Exception', 'PHPUnit\Exception');
use Cake\View\Helper\SecureFieldTokenTrait;
use Exception;
use LogicException;
use PHPUnit\Exception as PhpunitException;

/**
* A test case class intended to make integration tests of
Expand Down Expand Up @@ -487,7 +488,7 @@ protected function _sendRequest($url, $method, $data = [])
$this->_requestSession->write('Flash', $this->_flashMessages);
}
$this->_response = $response;
} catch (\PHPUnit\Exception $e) {
} catch (PhpUnitException $e) {
throw $e;
} catch (DatabaseException $e) {
throw $e;
Expand Down

0 comments on commit bea2b90

Please sign in to comment.