PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.0.0
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.0.0
4.11.2 4.11.1 4.11.0 4.10.0 4.9.5 4.9.4 4.9.3 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 1 year ago DBPermissions.php 1 year ago DataEncoder.php 1 year ago Escape.php 2 years ago Glob.php 2 years ago Hooks.php 1 year ago Math.php 1 year ago PluginInfo.php 2 years ago Sanitize.php 2 years ago ServerVars.php 2 years ago SlashMode.php 5 years ago Strings.php 1 year ago Times.php 1 year ago Urls.php 2 years 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