Skip to content

Commit

Permalink
coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jun 21, 2014
1 parent 749cb81 commit 88f358b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Component/FlashComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function set($message, array $options = []) {
* @param array $args Parameters to pass when calling `FlashComponent::set()`.
* @return void
* @throws \Cake\Error\InternalErrorException If missing the flash message.
*/
*/
public function __call($name, $args) {
$options = ['element' => Inflector::underscore($name)];

Expand Down
2 changes: 1 addition & 1 deletion src/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public function allowEmpty($field, $mode = true) {
*/
public function notEmpty($field, $message = null, $mode = false) {
if ($mode === 'create' || $mode === 'update') {
$mode = $mode === 'create' ? 'update': 'create';
$mode = $mode === 'create' ? 'update' : 'create';
}
$this->field($field)->isEmptyAllowed($mode);
if ($message) {
Expand Down

0 comments on commit 88f358b

Please sign in to comment.