mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix coding standards errors.
This commit is contained in:
parent
6e0cf0dab7
commit
f963e378b5
4 changed files with 8 additions and 12 deletions
|
@ -1,11 +1,5 @@
|
|||
<?php
|
||||
/**
|
||||
* This is i18n Schema file
|
||||
*
|
||||
* Use it to configure database for i18n
|
||||
*
|
||||
* PHP 5
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
|
@ -19,13 +13,15 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
*
|
||||
* Using the Schema command line utility
|
||||
* cake schema run create i18n
|
||||
*
|
||||
* Use it to configure database for i18n
|
||||
*
|
||||
* cake schema run create i18n
|
||||
*/
|
||||
class i18nSchema extends CakeSchema {
|
||||
class I18nSchema extends CakeSchema {
|
||||
|
||||
public $name = 'i18n';
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ if (!defined('WWW_ROOT')) {
|
|||
|
||||
// for built-in server
|
||||
if (php_sapi_name() == 'cli-server') {
|
||||
$_SERVER['PHP_SELF'] = '/'.basename(__FILE__);
|
||||
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
|
||||
}
|
||||
|
||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||
|
|
|
@ -74,7 +74,7 @@ if (!defined('WWW_ROOT')) {
|
|||
|
||||
// for built-in server
|
||||
if (php_sapi_name() == 'cli-server') {
|
||||
$_SERVER['PHP_SELF'] = '/'.basename(__FILE__);
|
||||
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
|
||||
}
|
||||
|
||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||
|
|
|
@ -1785,7 +1785,7 @@ class ValidationTest extends CakeTestCase {
|
|||
$this->assertTrue(Validation::url('http://underscore_subdomain.example.org'));
|
||||
$this->assertTrue(Validation::url('http://_jabber._tcp.gmail.com'));
|
||||
$this->assertFalse(Validation::url('http://www.underscore_domain.org'));
|
||||
$this->assertFalse(Validation::url('http://_jabber._tcp.g_mail.com'));
|
||||
$this->assertFalse(Validation::url('http://_jabber._tcp.g_mail.com'));
|
||||
|
||||
$this->assertTrue(Validation::url('http://example.com/~userdir/subdir/index.html'));
|
||||
$this->assertTrue(Validation::url('http://www.zwischenraume.de'));
|
||||
|
|
Loading…
Reference in a new issue