Skip to content

Commit

Permalink
method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Nov 7, 2016
1 parent 0e9fc69 commit f334e22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: php

php:
- 7.1
- 5.4
- 5.6
- 5.5
- 5.4
- 7.0
- nightly

Expand All @@ -28,5 +29,4 @@ notifications:
matrix:
fast_finish: true
allow_failures:
- php: 7.0
- php: nightly
28 changes: 14 additions & 14 deletions src/Alo.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ abstract class Alo {
*
* @return bool True if the file is found, false if not
*/
static function includeIfExists($path) {
public static function includeIfExists($path) {
if (self::isIncludable($path)) {
include $path;

Expand All @@ -186,7 +186,7 @@ static function includeIfExists($path) {
* @return string
* @since 1.3
*/
static function asciiRand($length, $subset = self::ASCII_ALL) {
public static function asciiRand($length, $subset = self::ASCII_ALL) {
switch ($subset) {
case self::ASCII_ALPHANUM:
$subset = self::$asciiAlphanum;
Expand Down Expand Up @@ -227,7 +227,7 @@ static function asciiRand($length, $subset = self::ASCII_ALL) {
* 1.3
* @codeCoverageIgnore
*/
static function getUniqid($hash = 'sha256', $prefix = '', $entropy = 10000, $rawOutput = false) {
public static function getUniqid($hash = 'sha256', $prefix = '', $entropy = 10000, $rawOutput = false) {
$str = mt_rand(~PHP_INT_MAX, PHP_INT_MAX) . json_encode([$_COOKIE,
$_REQUEST,
$_FILES,
Expand Down Expand Up @@ -277,7 +277,7 @@ private static function isIncludable($path) {
*
* @return bool True if the file is found, false if not
*/
static function includeOnceIfExists($path) {
public static function includeOnceIfExists($path) {
if (self::isIncludable($path)) {
include_once $path;

Expand All @@ -293,7 +293,7 @@ static function includeOnceIfExists($path) {
* @author Art <[email protected]>
* @return bool
*/
static function isCliRequest() {
public static function isCliRequest() {
return PHP_SAPI == 'cli' || defined('STDIN');
}

Expand All @@ -304,7 +304,7 @@ static function isCliRequest() {
* @return bool
* @since 1.3
*/
static function isRegularRequest() {
public static function isRegularRequest() {
return !self::isAjaxRequest() && !self::isCliRequest();
}

Expand All @@ -315,7 +315,7 @@ static function isRegularRequest() {
*
* @return mixed|null $var if it's set, null if it's not
*/
static function get(&$var) {
public static function get(&$var) {
return isset($var) ? $var : null;
}

Expand All @@ -328,7 +328,7 @@ static function get(&$var) {
*
* @return mixed|null The var or null
*/
static function nullget(&$var) {
public static function nullget(&$var) {
return self::get($var) ? $var : null;
}

Expand All @@ -344,7 +344,7 @@ static function nullget(&$var) {
*
* @return mixed $var if available, $planB if not
*/
static function ifnull(&$var, $planB, $useNullget = false) {
public static function ifnull(&$var, $planB, $useNullget = false) {
$v = $useNullget ? self::nullget($var) : self::get($var);

return $v !== null ? $v : $planB;
Expand All @@ -361,7 +361,7 @@ static function ifnull(&$var, $planB, $useNullget = false) {
* @return mixed
* @since 1.1
*/
static function ifundefined($const, $planB) {
public static function ifundefined($const, $planB) {
return defined($const) ? constant($const) : $planB;
}

Expand All @@ -371,7 +371,7 @@ static function ifundefined($const, $planB) {
* @author Art <[email protected]>
* @return bool
*/
static function isAjaxRequest() {
public static function isAjaxRequest() {
return self::get($_SERVER['HTTP_X_REQUESTED_WITH']) == 'XMLHttpRequest';
}

Expand All @@ -385,7 +385,7 @@ static function isAjaxRequest() {
* @return string
* @since 1.2
*/
static function getFingerprint($hashAlgo = 'sha256') {
public static function getFingerprint($hashAlgo = 'sha256') {
return hash($hashAlgo,
'#QramRAN7*s%6n%@x*53jVVPsnrz@5MY$49o^mhJ8HqY%3a09yJnSWg9lBl$O4CKUb&&S%EgYBjhUZEbhquw$keCjR6I%zMcA!Qr' .
self::get($_SERVER['HTTP_USER_AGENT']) .
Expand All @@ -406,7 +406,7 @@ static function getFingerprint($hashAlgo = 'sha256') {
* @return bool
* @since 1.2
*/
static function isTraversable($input) {
public static function isTraversable($input) {
return is_array($input) || $input instanceof Traversable;
}

Expand All @@ -422,7 +422,7 @@ static function isTraversable($input) {
* @since 1.3.2 ENT_SUBSTITUTE added<br/>
* 1.2
*/
static function unXss($input) {
public static function unXss($input) {
if (self::isTraversable($input)) {
foreach ($input as &$i) {
$i = self::unXss($i);
Expand Down

0 comments on commit f334e22

Please sign in to comment.