Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove \ prefix on use statements #1557

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove \ prefix on use statements
  • Loading branch information
samsonasik committed Nov 30, 2018
commit 681493c3a149dd2c793ef3c61dd16e96aaf9557f
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @filesource
*/

use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;

/**
* Class BaseBuilder
Expand Down
2 changes: 1 addition & 1 deletion system/Database/BaseUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @filesource
*/

use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;

/**
* Class BaseUtils
Expand Down
2 changes: 1 addition & 1 deletion system/Database/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @filesource
*/

use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;

/**
* Class Forge
Expand Down
2 changes: 1 addition & 1 deletion system/Database/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

use CodeIgniter\Database\BaseConnection;
use CodeIgniter\Database\ConnectionInterface;
use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;

/**
* Connection for MySQLi
Expand Down
2 changes: 1 addition & 1 deletion system/Database/MySQLi/PreparedQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/

use CodeIgniter\Database\PreparedQueryInterface;
use \CodeIgniter\Database\BasePreparedQuery;
use CodeIgniter\Database\BasePreparedQuery;

class PreparedQuery extends BasePreparedQuery implements PreparedQueryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion system/Database/Postgre/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/

use CodeIgniter\Database\BaseBuilder;
use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;

/**
* Builder for Postgre
Expand Down
2 changes: 1 addition & 1 deletion system/Database/Postgre/PreparedQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/

use CodeIgniter\Database\PreparedQueryInterface;
use \CodeIgniter\Database\BasePreparedQuery;
use CodeIgniter\Database\BasePreparedQuery;

class PreparedQuery extends BasePreparedQuery implements PreparedQueryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion system/Database/SQLite3/PreparedQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/

use CodeIgniter\Database\PreparedQueryInterface;
use \CodeIgniter\Database\BasePreparedQuery;
use CodeIgniter\Database\BasePreparedQuery;

class PreparedQuery extends BasePreparedQuery implements PreparedQueryInterface
{
Expand Down
4 changes: 3 additions & 1 deletion system/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@
* @filesource
*/

use CodeIgniter\API\ResponseTrait;

/**
* Exceptions manager
*/
class Exceptions
{
use \CodeIgniter\API\ResponseTrait;
use ResponseTrait;

/**
* Nesting level of the output buffering mechanism
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Database/Live/DeleteTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace CodeIgniter\Database\Live;

use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Test\CIDatabaseTestCase;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Database/Live/UpdateTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace CodeIgniter\Database\Live;

use \CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Test\CIDatabaseTestCase;

/**
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/cli/cli_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You do not need to create an instance of the CLI library, since all of it's meth
need to ensure your controller can locate it via a ``use`` statement above your class::

<?php
use \CodeIgniter\CLI\CLI;
use CodeIgniter\CLI\CLI;

class MyController extends \CodeIgniter\Controller
{
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/models/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ instance of the database connection and you're good to go.

::

use \CodeIgniter\Database\ConnectionInterface;
use CodeIgniter\Database\ConnectionInterface;

class UserModel
{
Expand Down
4 changes: 3 additions & 1 deletion user_guide_src/source/outgoing/api_responses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ The following example shows a common usage pattern within your controllers.

<?php namespace App\Controllers;

use CodeIgniter\API\ResponseTrait;

class Users extends \CodeIgniter\Controller
{
use \CodeIgniter\API\ResponseTrait;
use ResponseTrait;

public function createUser()
{
Expand Down