Skip to content

Commit

Permalink
Fixed CS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 4, 2013
1 parent 1879224 commit b433798
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions Cake/Cache/CacheEngine.php
Expand Up @@ -200,6 +200,7 @@ public function key($key) {
*
* @param string $key the key passed over
* @return mixed string $key or false
* @throws InvalidArgumentException If key's value is empty
*/
protected function _key($key) {
$key = $this->key($key);
Expand Down
1 change: 0 additions & 1 deletion Cake/Controller/Component/PaginatorComponent.php
Expand Up @@ -129,7 +129,6 @@ class PaginatorComponent extends Component {
* @param Table $object The table to paginate.
* @param array $settings The settings/configuration used for pagination.
* @return array Query results
* @throws Cake\Error\MissingModelException
* @throws Cake\Error\NotFoundException
*/
public function paginate($object, array $settings = []) {
Expand Down
4 changes: 2 additions & 2 deletions Cake/ORM/Table.php
Expand Up @@ -29,8 +29,8 @@
use Cake\ORM\BehaviorRegistry;
use Cake\ORM\Entity;
use Cake\ORM\Error\MissingEntityException;
use Cake\Validation\Validator;
use Cake\Utility\Inflector;
use Cake\Validation\Validator;

/**
* Represents a single database table.
Expand Down Expand Up @@ -1274,7 +1274,7 @@ public function callFinder($type, Query $query, $options = []) {
* @throws Cake\Error\Exception when there are missing arguments, or when
* and & or are combined.
*/
public function _dynamicFinder($method, $args) {
protected function _dynamicFinder($method, $args) {
$method = Inflector::underscore($method);
preg_match('/^find_([\w]+)_by_/', $method, $matches);
if (empty($matches)) {
Expand Down
Expand Up @@ -14,8 +14,8 @@
*/
namespace Cake\Test\TestCase\Controller\Component;

use Cake\Controller\Component\PaginatorComponent;
use Cake\Controller\ComponentRegistry;
use Cake\Controller\Component\PaginatorComponent;
use Cake\Controller\Controller;
use Cake\Core\Configure;
use Cake\Database\ConnectionManager;
Expand Down
2 changes: 1 addition & 1 deletion Cake/Test/TestCase/Validation/ValidationRuleTest.php
Expand Up @@ -16,7 +16,7 @@
* @since CakePHP(tm) v 2.2.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Test\TestCase\ORM\Validaton;
namespace Cake\Test\TestCase\Validation;

use Cake\TestSuite\TestCase;
use Cake\Validation\ValidationRule;
Expand Down
2 changes: 1 addition & 1 deletion Cake/Test/TestCase/Validation/ValidationSetTest.php
Expand Up @@ -16,9 +16,9 @@
*/
namespace Cake\Test\TestCase\Validation;

use Cake\TestSuite\TestCase;
use Cake\Validation\ValidationRule;
use Cake\Validation\ValidationSet;
use Cake\TestSuite\TestCase;

/**
* ValidationSetTest
Expand Down
5 changes: 2 additions & 3 deletions Cake/Test/TestCase/Validation/ValidatorTest.php
Expand Up @@ -197,7 +197,6 @@ public function testIsEmptyAllowed() {
$this->assertFalse($validator->isEmptyAllowed('title', true));
}


/**
* Tests errors generated when a field is not allowed to be empty
*
Expand Down Expand Up @@ -324,7 +323,7 @@ public function testErrorsFromCustomProvider() {
$errors = $validator->errors(['email' => '!', 'title' => 'bar']);
$expected = [
'email' => ['alpha' => 'The provided value is invalid'],
'title' => ['cool' => "That ain't cool, yo"]
'title' => ['cool' => "That ain't cool, yo"]
];
$this->assertEquals($expected, $errors);
}
Expand Down Expand Up @@ -357,7 +356,7 @@ public function testMethodsWithExtraArguments() {
$validator->provider('thing', $thing);
$errors = $validator->errors(['email' => '!', 'title' => 'bar']);
$expected = [
'title' => ['cool' => "That ain't cool, yo"]
'title' => ['cool' => "That ain't cool, yo"]
];
$this->assertEquals($expected, $errors);
}
Expand Down
2 changes: 1 addition & 1 deletion Cake/Validation/Validator.php
Expand Up @@ -177,7 +177,7 @@ public function offsetGet($field) {
public function offsetSet($field, $rules) {
if (!$rules instanceof ValidationSet) {
$set = new ValidationSet;
foreach((array)$rules as $name => $rule) {
foreach ((array)$rules as $name => $rule) {
$set->add($name, $rule);
}
}
Expand Down

0 comments on commit b433798

Please sign in to comment.