Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix PHPCS violations
  • Loading branch information
josegonzalez committed Oct 30, 2014
1 parent 4be9997 commit 357a4af
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Cache/Cache.php
Expand Up @@ -478,6 +478,11 @@ public static function remember($key, $callable, $config = 'default') {
return $results;
}

/**
* Returns an array mapping url schemes to fully qualified class names
*
* @return array
*/
public static function getClassMap() {
return [
'apc' => 'Cake\Cache\Engine\ApcEngine',
Expand Down
5 changes: 5 additions & 0 deletions src/Datasource/ConnectionManager.php
Expand Up @@ -107,6 +107,11 @@ public static function parseDsn($config = null) {
return $config;
}

/**
* Returns an array mapping url schemes to fully qualified class names
*
* @return array
*/
public static function getClassMap() {
return [
'mysql' => 'Cake\Database\Driver\Mysql',
Expand Down
5 changes: 5 additions & 0 deletions src/Log/Log.php
Expand Up @@ -481,6 +481,11 @@ public static function info($message, $context = array()) {
return static::write(static::$_levelMap['info'], $message, $context);
}

/**
* Returns an array mapping url schemes to fully qualified class names
*
* @return array
*/
public static function getClassMap() {
return [
'console' => 'Cake\Log\Engine\ConsoleLog',
Expand Down
6 changes: 5 additions & 1 deletion src/Network/Email/Email.php
Expand Up @@ -1817,7 +1817,11 @@ protected function _getContentTypeCharset() {
return strtoupper($this->charset);
}


/**
* Returns an array mapping url schemes to fully qualified class names
*
* @return array
*/
public static function getClassMap() {
return [
'debug' => 'Cake\Network\Email\DebugTransport',
Expand Down
4 changes: 4 additions & 0 deletions tests/TestCase/Core/StaticConfigTraitTest.php
Expand Up @@ -50,6 +50,7 @@ public static function getClassMap() {
'sqlserver' => 'Cake\Database\Driver\Sqlserver',
];
}

}

/**
Expand All @@ -70,6 +71,7 @@ public static function getClassMap() {
'xcache' => 'Cake\Cache\Engine\XcacheEngine',
];
}

}

/**
Expand All @@ -86,6 +88,7 @@ public static function getClassMap() {
'smtp' => 'Cake\Network\Email\SmtpTransport',
];
}

}

/**
Expand All @@ -102,6 +105,7 @@ public static function getClassMap() {
'syslog' => 'Cake\Log\Engine\SyslogLog',
];
}

}

/**
Expand Down

0 comments on commit 357a4af

Please sign in to comment.