Skip to content

Commit e3f7007

Browse files
committed
Whitespace cleanup.
1 parent b1d7632 commit e3f7007

20 files changed

Lines changed: 90 additions & 89 deletions

bin-selfupdate

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
9-
Runs the necessary local commands to switch branches and/or
10-
update the bin/ submodule repo to the latest release. Afterwards,
8+
${0##*/}
9+
Runs the necessary local commands to switch branches and/or
10+
update the bin/ submodule repo to the latest release. Afterwards,
1111
you should commit the changes in the parent project's repo.
1212
1313
Usage:
1414
bin/${0##*/} [branch]
15-
16-
Provide an optional branch from the CakePHP-Shell-Scripts repo
15+
16+
Provide an optional branch from the CakePHP-Shell-Scripts repo
1717
you'd like to use. Defaults to 'master' for Cake 2+.
1818
1919
@@ -25,7 +25,6 @@ if [ "$1" = '-h' ]; then
2525
usage
2626
fi
2727

28-
2928
DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
3029
BIN_DIR="$DIR/bin"
3130

@@ -56,5 +55,5 @@ if [ $? -gt 0 ]; then
5655
exit 1 # Exits non-zero updates had to be applied.
5756
else
5857
echo "## No changes to apply to the bin/ submodule."
59-
exit 0
58+
exit 0
6059
fi

clear-cache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
9-
Clears files from known Cake tmp directories. In particular,
10-
should be run after database schema changes. Should be run
8+
${0##*/}
9+
Clears files from known Cake tmp directories. In particular,
10+
should be run after database schema changes. Should be run
1111
from the project root folder.
1212
1313
Usage:

clear-logs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
8+
${0##*/}
99
Clears files from Cake's logs directory. Really only needed to
10-
recover disk space from aggressive logs. Should be run
10+
recover disk space from aggressive logs. Should be run
1111
from the project root folder.
1212
1313
Usage:

db-backup

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ function usage()
77
$script = basename(__FILE__);
88
echo <<<EOT
99
10-
${script}
11-
Uses the Config/database.php file to execute a mysqldump of the
12-
default database into a ZIP file located in a backups/ folder
13-
created in the project root (if necessary). Outputs the ZIP
14-
file's size as a crude verification step. Should be run from
10+
${script}
11+
Uses the Config/database.php file to execute a mysqldump of the
12+
default database into a ZIP file located in a backups/ folder
13+
created in the project root (if necessary). Outputs the ZIP
14+
file's size as a crude verification step. Should be run from
1515
the project root folder.
1616
1717
Usage:

db-credentials

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$dir = dirname(dirname(__FILE__));
1010
$dbConfigFile = $dir . '/Config/database.php';
1111
include $dbConfigFile;
12-
$db = new DATABASE_CONFIG();
12+
$db = new DATABASE_CONFIG();
1313

1414
echo <<<EOD
1515
DB_HOST="{$db->default['host']}"

db-loadschema

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
9-
Determines the active schema management tool in use (CakeDC
10-
Migrations plugin, Cake Schema Shell, or old-fashioned schema.sql
8+
${0##*/}
9+
Determines the active schema management tool in use (CakeDC
10+
Migrations plugin, Cake Schema Shell, or old-fashioned schema.sql
1111
file) and attempts to load the schema into the default database.
1212
Should be run from the project root folder.
1313

db-login

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
9-
Uses Cake's Config/database.php file to start a command line
8+
${0##*/}
9+
Uses Cake's Config/database.php file to start a command line
1010
mysql session with the correct host, database, user and password.
1111
Should be run from the project root folder.
1212
@@ -38,4 +38,4 @@ elif [ -n "${DB_PASS}" ]; then
3838
${CMD} -p${DB_PASS}
3939
else
4040
${CMD}
41-
fi
41+
fi

db-showupdates

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
9-
Takes at least one git commit SHA hash and compares the
10-
Config/sql/db_updates.sql file in older (non-Migrations) projects
11-
to either the second commit SHA if provided, or the "HEAD" commit.
12-
The output is the difference between the files. Practically, this
13-
will be any SQL commands added to the bottom of the file,
14-
indicating they need to be applied to the local database. Used by
15-
bin/update to warn the user about DB changes before proceeding
8+
${0##*/}
9+
Takes at least one git commit SHA hash and compares the
10+
Config/sql/db_updates.sql file in older (non-Migrations) projects
11+
to either the second commit SHA if provided, or the "HEAD" commit.
12+
The output is the difference between the files. Practically, this
13+
will be any SQL commands added to the bottom of the file,
14+
indicating they need to be applied to the local database. Used by
15+
bin/update to warn the user about DB changes before proceeding
1616
with a git pull. Should be run from the project root folder.
1717
1818
Usage:

email

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ usage ()
55
{
66
cat <<EOT
77
8-
${0##*/}
9-
Provides a simplified interface for sending email from the local system.
8+
${0##*/}
9+
Provides a simplified interface for sending email from the local
10+
system, with the goal of being able to fail gracefully when the
11+
\`mail\` executable is not available.
1012
1113
Usage:
1214
bin/${0##*/} <emailAddress> <subject> <msgBodyFile>
13-
15+
1416
- emailAddress: The email address to which to send the message.
1517
- subject: The subject line to use for the message.
1618
- msgBodyFile: The full path to the text file containing the message body.

git-currentbranch

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ usage ()
88
${0##*/}
99
Echoes the name of the currently checked-out git branch. Exits
1010
with a non-zero code when run in a non-git directory. The output
11-
of this script can be captured into a variable in another script using the following:
12-
11+
of this script can be captured into a variable in another script
12+
using the following:
13+
1314
BRANCH=\$(bin/git-currentbranch)
1415
1516
Usage:

0 commit comments

Comments
 (0)