Skip to content

Commit 13a7085

Browse files
Cleanup line endings
1 parent 07155c8 commit 13a7085

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

deploy-config.orig.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
/* DISABLED: Set to true to prevent the execution of this script. cript only when needed */
99
define('DISABLED', false);
1010

11-
/* IP_ALLOW:
11+
/* IP_ALLOW:
1212
* Array of IP addresses and ranges in CIDR notation that are allowed to execute
1313
* the script. Supports IPv4 and IPv6. Leave array empty to allow all IPs.
1414
* GitHub IP ranges are 192.30.252.0/22 and 2620:112:3000::/44
1515
* (https://help.github.com/articles/github-s-ip-addresses/)
16-
* BitBucket IP ranges are 104.192.143.192/28 and 2401:1d80:1010::/64
16+
* BitBucket IP ranges are 104.192.143.192/28 and 2401:1d80:1010::/64
1717
* (https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html)
1818
*
1919
*/
@@ -22,17 +22,17 @@
2222

2323
/*
2424
* REMOTE_REPOSITORY:
25-
* Address of the remote Git repo. For private repos use the SSH address
26-
* Examples:
25+
* Address of the remote Git repo. For private repos use the SSH address
26+
* Examples:
2727
* https://github.com/username/reponame.git
2828
* git@bitbucket.org:username/reponame.git
29-
*
29+
*
3030
*/
3131
define('REMOTE_REPOSITORY', '');
3232

33-
/*
33+
/*
3434
* BRANCH:
35-
* Array of branch names allowed to deploy
35+
* Array of branch names allowed to deploy
3636
* First name in array is considered the default branch and only one allowed for automatic deployments
3737
*/
3838
define('BRANCH', serialize(array(
@@ -43,7 +43,7 @@
4343

4444
/*
4545
* ACCESS_TOKEN:
46-
* Secret code/password used to authorize execution of this script
46+
* Secret code/password used to authorize execution of this script
4747
* Script will not execute if left blank
4848
* You must add this token to the deployment URL as the value of parameter t
4949
* Example: http://domain.com/deploy.php?t=ACCESS_TOKEN
@@ -65,16 +65,16 @@
6565
/* TIME_LIMIT: Time limit for each command */
6666
define('TIME_LIMIT', 60);
6767

68-
/* EXCLUDE_FILES:
68+
/* EXCLUDE_FILES:
6969
* Array of files excluded from rsync (they will appear in GIT_DIR, but not in TARGET_DIR)
70-
* By default, only .git directory is excluded.
70+
* By default, only .git directory is excluded.
7171
* It's recommended to leave '.git' excluded and add something more if needed.
7272
* Example: define('EXCLUDE_FILES', serialize(array('.git', '.gitignore', '*.less', '*.scss')));
7373
*
7474
*/
7575
define('EXCLUDE_FILES', serialize(array('.git')));
7676

77-
/* RSYNC_FLAGS:
77+
/* RSYNC_FLAGS:
7878
* Custom flags to run rsync with
7979
* Default: '-rltgoDzvO'
8080
* -r recursive
@@ -103,7 +103,7 @@
103103
/* COMMANDS_AFTER_RSYNC:
104104
* Run commands after running rsync. Default: empty array
105105
* This commands will be run under TARGET_DIR after copying files from GIT_DIR
106-
* Useful for doing some cleanups
106+
* Useful for doing some cleanups
107107
* Example: define('COMMANDS_AFTER_RSYNC', serialize(array('rm cache/*.php -f')));
108108
*/
109109
define('COMMANDS_AFTER_RSYNC', serialize(array()));

deploy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ function endScript($msg = "") {
165165
$branch = '';
166166

167167
if (!function_exists('getallheaders')) {
168-
function getallheaders() {
168+
function getallheaders() {
169169
$headers = [];
170170
foreach ($_SERVER as $name => $value) {
171171
if (substr($name, 0, 5) == 'HTTP_') {
172172
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
173173
}
174174
}
175175
return $headers;
176-
}
176+
}
177177
}
178178

179179
// Process request headers

0 commit comments

Comments
 (0)