aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/PreparedStatement.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/DB/PreparedStatement.php')
-rw-r--r--lib/private/DB/PreparedStatement.php26
1 files changed, 4 insertions, 22 deletions
diff --git a/lib/private/DB/PreparedStatement.php b/lib/private/DB/PreparedStatement.php
index f679576a428..54561ed96cd 100644
--- a/lib/private/DB/PreparedStatement.php
+++ b/lib/private/DB/PreparedStatement.php
@@ -2,27 +2,10 @@
declare(strict_types=1);
-/*
- * @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @author 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+/**
+ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
-
namespace OC\DB;
use Doctrine\DBAL\Exception;
@@ -42,7 +25,6 @@ use PDO;
* methods without much magic.
*/
class PreparedStatement implements IPreparedStatement {
-
/** @var Statement */
private $statement;
@@ -96,6 +78,6 @@ class PreparedStatement implements IPreparedStatement {
return $this->result;
}
- throw new Exception("You have to execute the prepared statement before accessing the results");
+ throw new Exception('You have to execute the prepared statement before accessing the results');
}
}