PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.9.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.9.2
4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Framework / Utils / SlashMode.php
wp-staging / Framework / Utils Last commit date
Cache 7 months ago DBPermissions.php 9 months ago DataEncoder.php 10 months ago DatabaseOptions.php 2 weeks ago Escape.php 9 months ago Glob.php 2 years ago Hooks.php 2 months ago Math.php 9 months ago PluginInfo.php 5 months ago Sanitize.php 2 months ago ServerVars.php 2 years ago SlashMode.php 5 years ago Strings.php 7 months ago Times.php 5 months ago Urls.php 2 weeks ago Version.php 1 year ago WpDefaultDirectories.php 2 years ago
SlashMode.php
36 lines
1 <?php
2
3 // TODO PHP7.x; declare(strict_types=1);
4 namespace WPStaging\Framework\Utils;
5
6 // TODO PHP7.1; constant visibility
7 /**
8 * This class is mainly used as a enum to provide SLASH MODE
9 */
10 class SlashMode
11 {
12 /**
13 * Make path have no leading and trailing slashes
14 * @var int
15 */
16 const NO_SLASH = 0;
17
18 /**
19 * Make path have only leading slash but no trailing slash
20 * @var int
21 */
22 const LEADING_SLASH = -1;
23
24 /**
25 * Make path have only trailing slash but no leading slash
26 * @var int
27 */
28 const TRAILING_SLASH = 1;
29
30 /**
31 * Make path have both slashes i.e. trailing slash and leading slash
32 * @var int
33 */
34 const BOTH_SLASHES = 2;
35 }
36