浏览代码

Fix PHPCS errors.

mark_story 11 年之前
父节点
当前提交
f8da50e705
共有 3 个文件被更改,包括 1 次插入4 次删除
  1. 1 1
      src/Datasource/QueryTrait.php
  2. 0 1
      src/ORM/Query.php
  3. 0 2
      src/ORM/Table.php

+ 1 - 1
src/Datasource/QueryTrait.php

@@ -332,7 +332,7 @@ trait QueryTrait {
 /**
  * Get the first result from the executing query or raise an exception.
  *
- * @throws \Cake\Datasource\RecordNotFoundException When there is no first record.
+ * @throws \Cake\Datasource\Exception\RecordNotFoundException When there is no first record.
  * @return mixed The first result from the ResultSet.
  */
 	public function firstOrFail() {

+ 0 - 1
src/ORM/Query.php

@@ -20,7 +20,6 @@ use Cake\Datasource\QueryTrait;
 use Cake\ORM\EagerLoader;
 use Cake\ORM\ResultSet;
 use Cake\ORM\Table;
-use Cake\ORM\Exception\RecordNotFoundException;
 use JsonSerializable;
 
 /**

+ 0 - 2
src/ORM/Table.php

@@ -905,8 +905,6 @@ class Table implements RepositoryInterface, EventListenerInterface {
 /**
  * {@inheritDoc}
  *
- * @throws \Cake\ORM\Exception\RecordNotFoundException if no record can be found given
- * a primary key value.
  * @throws \InvalidArgumentException When $primaryKey has an incorrect number of elements.
  */
 	public function get($primaryKey, $options = []) {