Skip to content

Commit 514d967

Browse files
committed
Updated .gitignore, synced app & skel
Added some good practice rules from https://help.github.com/articles/ignoring-files to gitignore Changed .gitignore to only ignore /app/Config/database.php instead of all files in /app/Config/ (helps to keep it in sync with its skel folder!) Brought \app\ and \lib\Cake\Console\Templates\skel\ in sync Fixed various @Package annotations in \app\ Fixed various @Package annotations in \lib\Cake\Console\Templates\skel\
1 parent 431e610 commit 514d967

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+118
-113
lines changed

.gitignore

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
/app/Config
1+
# User specific & automatically generated files #
2+
#################################################
3+
/app/Config/database.php
24
/app/tmp
35
/lib/Cake/Console/Templates/skel/tmp/
46
/plugins
57
/vendors
68
/build
79
/dist
8-
.DS_Store
910
/tags
11+
12+
# OS generated files #
13+
######################
14+
.DS_Store
15+
.DS_Store?
16+
._*
17+
.Spotlight-V100
18+
.Trashes
19+
Icon?
20+
ehthumbs.db
21+
Thumbs.db

app/Config/Schema/i18n.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@
2020
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
2121
*/
2222

23-
// @codingStandardsIgnoreStart
24-
25-
/*
23+
/**
2624
*
2725
* Using the Schema command line utility
2826
*
2927
* Use it to configure database for i18n
3028
*
3129
* cake schema run create i18n
3230
*/
33-
class i18nSchema extends CakeSchema {
34-
35-
// @codingStandardsIgnoreEnd
31+
class I18nSchema extends CakeSchema {
3632

3733
public $name = 'i18n';
3834

app/Config/core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
*
9696
* And uncomment the App.baseUrl below. But keep in mind
9797
* that plugin assets such as images, CSS and Javascript files
98-
* will not work without url rewriting
98+
* will not work without url rewriting!
9999
* To work around this issue you should either symlink or copy
100100
* the plugin assets into you app's webroot directory. This is
101101
* recommended even when you are using mod_rewrite. Handling static

app/Config/database.php.default

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818
* @package app.Config
1919
* @since CakePHP(tm) v 0.2.9
2020
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
21-
*/
22-
/**
23-
* In this file you set up your database connection details.
2421
*
25-
* @package cake.config
26-
*/
27-
/**
2822
* Database configuration class.
2923
* You can specify multiple configurations for production, development and testing.
3024
*

app/Config/email.php.default

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818
* @package app.Config
1919
* @since CakePHP(tm) v 2.0.0
2020
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
21-
*/
22-
/**
23-
* In this file you set up your send email details.
2421
*
25-
* @package cake.config
26-
*/
27-
/**
2822
* Email configuration class.
2923
* You can specify multiple configurations for production, development and testing.
3024
*

app/Console/cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
1515
# @link http://cakephp.org CakePHP(tm) Project
16-
# @package cake.Console
16+
# @package app.Console
1717
# @since CakePHP(tm) v 1.2.0.5012
1818
# @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1919
#

app/Console/cake.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
::
1212
:: @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
1313
:: @link http://cakephp.org CakePHP(tm) Project
14-
:: @package app.Console
14+
:: @package app.Console
1515
:: @since CakePHP(tm) v 2.0
1616
:: @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1717
::

app/Console/cake.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323

2424
if (function_exists('ini_set')) {
2525
$root = dirname(dirname(dirname(__FILE__)));
26+
27+
// the following line differs from its sibling
28+
// /lib/Cake/Console/Templates/skel/Console/cake.php
2629
ini_set('include_path', $root . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
2730
}
2831

29-
if (!include ($dispatcher)) {
32+
if (!include($dispatcher)) {
3033
trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
3134
}
3235
unset($paths, $path, $dispatcher, $root, $ds);

app/Controller/AppController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* @since CakePHP(tm) v 0.2.9
2121
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
2222
*/
23-
2423
App::uses('Controller', 'Controller');
2524

2625
/**
@@ -29,8 +28,8 @@
2928
* Add your application-wide methods in the class below, your controllers
3029
* will inherit them.
3130
*
32-
* @package app.Controller
33-
* @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
31+
* @package app.Controller
32+
* @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
3433
*/
3534
class AppController extends Controller {
3635
}

app/Controller/PagesController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
* @since CakePHP(tm) v 0.2.9
2020
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
2121
*/
22-
2322
App::uses('AppController', 'Controller');
2423

2524
/**

0 commit comments

Comments
 (0)