Skip to content

Commit

Permalink
Ensure namespace and use declarations are PSR2 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Dec 12, 2012
1 parent 08bc132 commit 513b1a7
Show file tree
Hide file tree
Showing 408 changed files with 412 additions and 112 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Cache/Cache.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Cache;

use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Error;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Cache/CacheEngine.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Cache;

use Cake\Utility\Inflector;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Cache/Engine/FileEngine.php
Expand Up @@ -20,6 +20,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Cache\Engine;

use Cake\Cache\CacheEngine;
use Cake\Error;
use Cake\Utility\Inflector;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Cache/Engine/XcacheEngine.php
Expand Up @@ -17,6 +17,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Cache\Engine;

use Cake\Cache\CacheEngine;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Configure/IniReader.php
Expand Up @@ -16,8 +16,8 @@
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Configure;

use Cake\Core\App;
use Cake\Error;
use Cake\Utility\Hash;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Configure/PhpReader.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Configure;

use Cake\Core\App;
use Cake\Error;

Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/CommandListShell.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command;

use Cake\Console\ConsoleOutput;
use Cake\Console\Shell;
use Cake\Core\App;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/ConsoleShell.php
Expand Up @@ -12,6 +12,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command;

use Cake\Console\Shell;
use Cake\Core\Plugin;
use Cake\Routing\Dispatcher;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/I18nShell.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command;

use Cake\Console\Shell;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/BakeTask.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\Configure;

Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ControllerTask.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Utility\ClassRegistry;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/DbConfigTask.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\Configure;
use Cake\Model\ConnectionManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ExtractTask.php
Expand Up @@ -15,8 +15,8 @@
* @since CakePHP(tm) v 1.2.0.5012
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Core\Plugin;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Model\ConnectionManager;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/PluginTask.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Utility\File;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/TemplateTask.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command\Task;

use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Utility\Folder;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/TestShell.php
Expand Up @@ -18,6 +18,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command;

use Cake\Console\ConsoleOptionParser;
use Cake\Console\Shell;
use Cake\TestSuite\TestLoader;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/TestsuiteShell.php
Expand Up @@ -18,6 +18,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console\Command;

use Cake\Console\ConsoleOptionParser;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/ConsoleInputArgument.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console;

use Cake\Error;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/ConsoleInputOption.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console;

use Cake\Error;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/ConsoleOptionParser.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console;

use Cake\Error;
use Cake\Utility\Inflector;

Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/HelpFormatter.php
Expand Up @@ -15,6 +15,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console;

use Cake\Utility\String;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/TaskCollection.php
Expand Up @@ -15,6 +15,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Console;

use Cake\Core\App;
use Cake\Error;
use Cake\Utility\ObjectCollection;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Templates/skel/Config/Schema/db_acl.php
Expand Up @@ -19,6 +19,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace App\Config\Schema;

use Cake\Model\Schema;

/*
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Templates/skel/Config/Schema/i18n.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace App\Config\Schema;

use Cake\Model\Schema;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Templates/skel/Config/Schema/sessions.php
Expand Up @@ -19,6 +19,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace App\Config\Schema;

use Cake\Model\Schema;

/*
Expand Down
Expand Up @@ -15,7 +15,6 @@
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace App\Console\Command;

use Cake\Console\Shell;
Expand Down
Expand Up @@ -19,6 +19,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace App\Controller;

use Cake\Utility\Inflector;

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Templates/skel/Model/AppModel.php
Expand Up @@ -20,6 +20,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace App\Model;

use Cake\Model\Model;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Console/Templates/skel/View/Errors/error400.ctp
Expand Up @@ -15,7 +15,6 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

use Cake\Core\Configure;

?>
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Console/Templates/skel/View/Errors/error500.ctp
Expand Up @@ -15,7 +15,6 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

use Cake\Core\Configure;

?>
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Console/Templates/skel/View/Helper/AppHelper.php
Expand Up @@ -19,7 +19,6 @@
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace App\View\Helper;

use Cake\View\Helper;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Acl/AclInterface.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Acl;

use Cake\Controller\Component;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/Acl/DbAcl.php
Expand Up @@ -12,8 +12,8 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller\Component\Acl;

use Cake\Controller\Component;
use Cake\Controller\Component\Acl\AclInterface;
use Cake\Core\Object;
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/Acl/IniAcl.php
Expand Up @@ -12,8 +12,8 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller\Component\Acl;

use Cake\Configure\IniReader;
use Cake\Controller\Component;
use Cake\Core\Object;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Auth/ActionsAuthorize.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Auth;

use Cake\Network\Request;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/Auth/BaseAuthenticate.php
Expand Up @@ -12,8 +12,8 @@
* @link http://cakephp.org CakePHP(tm) Project
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Network\Request;
use Cake\Network\Response;
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/Auth/BaseAuthorize.php
Expand Up @@ -12,8 +12,8 @@
* @link http://cakephp.org CakePHP(tm) Project
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Controller\Controller;
use Cake\Error;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Auth/BasicAuthenticate.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Network\Request;
use Cake\Network\Response;
Expand Down
Expand Up @@ -12,7 +12,6 @@
* @link http://cakephp.org CakePHP(tm) Project
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller\Component\Auth;

use Cake\Network\Request;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Auth/ControllerAuthorize.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Controller\Controller;
use Cake\Error;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Auth/CrudAuthorize.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Network\Request;
use Cake\Routing\Router;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Auth/DigestAuthenticate.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Network\Request;
use Cake\Network\Response;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/Auth/FormAuthenticate.php
Expand Up @@ -13,6 +13,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component\Auth;

use Cake\Controller\ComponentCollection;
use Cake\Network\Request;
use Cake\Network\Response;
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -18,8 +18,8 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller\Component;

use Cake\Controller\Component;
use Cake\Controller\ComponentCollection;
use Cake\Controller\Controller;
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/SessionComponent.php
Expand Up @@ -17,6 +17,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller\Component;

use Cake\Controller\Component;
use Cake\Model\Datasource\Session;

Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/ComponentCollection.php
Expand Up @@ -16,6 +16,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller;

use Cake\Core\App;
use Cake\Error;
use Cake\Event\EventListener;
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Controller.php
Expand Up @@ -11,7 +11,6 @@
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Controller;

use Cake\Core\App;
Expand Down

0 comments on commit 513b1a7

Please sign in to comment.