Skip to content

Commit

Permalink
Code standards fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed May 20, 2012
1 parent d974a91 commit 4d9b72c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion en/core-utility-libraries/app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ directory. Cake will automatically find it.
To load **vendors/vendorName/libFile.php**::

<?php
App::import('Vendor', 'aUniqueIdentifier', array('file' => 'vendorName' .DS . 'libFile.php'));
App::import('Vendor', 'aUniqueIdentifier', array('file' => 'vendorName' . DS . 'libFile.php'));

App Init/Load/Shutdown Methods
==============================
Expand Down
2 changes: 1 addition & 1 deletion en/development/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ set to a value greater than 0.
lines around it.::

<?php
pr( Debugger::excerpt(ROOT.DS.LIBS.'debugger.php', 321, 2) );
pr( Debugger::excerpt(ROOT . DS . LIBS . 'debugger.php', 321, 2) );
//will output the following.
Array
Expand Down
4 changes: 2 additions & 2 deletions en/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ example) to look like the following::
// /app/webroot/index.php (partial, comments removed)
if (!defined('ROOT')) {
define('ROOT', DS.'home'.DS.'me');
define('ROOT', DS . 'home' . DS . 'me');
}
if (!defined('APP_DIR')) {
define ('APP_DIR', 'myapp');
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS.'usr'.DS.'lib');
define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'lib');
}

It is recommended to use the ``DS`` constant rather than slashes to
Expand Down
4 changes: 2 additions & 2 deletions es/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ para que se parezca a este:
// /app/webroot/index.php (partial, comments removed)
if (!defined('ROOT')) {
define('ROOT', DS.'home'.DS.'me');
define('ROOT', DS . 'home' . DS . 'me');
}
if (!defined('APP_DIR')) {
define ('APP_DIR', 'myapp');
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS.'usr'.DS.'lib');
define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'lib');
}

Recomendamos utilizar la constante ``DS`` en vez del caracter '/' para delimitar
Expand Down
4 changes: 2 additions & 2 deletions ja/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ CakePHPを次のような条件で動作させたいとします:
// /app/webroot/index.php (一部分。コメントは取り除いてあります。)
if (!defined('ROOT')) {
define('ROOT', DS.'home'.DS.'me');
define('ROOT', DS . 'home' . DS . 'me');
}
if (!defined('APP_DIR')) {
define ('APP_DIR', 'myapp');
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS.'usr'.DS.'lib');
define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'lib');
}

ファイルパスの区切り文字には、スラッシュではなく ``DS`` 定数を使うようにお勧めします。
Expand Down
4 changes: 2 additions & 2 deletions pt/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ seguinte::
// /app/webroot/index.php (parcial, comentários removidos)
if (!defined('ROOT')) {
define('ROOT', DS.'home'.DS.'me');
define('ROOT', DS . 'home' . DS . 'me');
}
if (!defined('APP_DIR')) {
define ('APP_DIR', 'myapp');
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS.'usr'.DS.'lib');
define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'lib');
}

Recomenda-se a utilização da constante ``DS`` ao invés das barras para
Expand Down

0 comments on commit 4d9b72c

Please sign in to comment.