Skip to content

Commit

Permalink
Remove whitespaces from stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlianon authored and andrey-sokolov committed May 13, 2020
1 parent cdd2c06 commit eff2ef8
Show file tree
Hide file tree
Showing 153 changed files with 2,057 additions and 2,080 deletions.
38 changes: 19 additions & 19 deletions Core/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ function each (array &$array) {}
* @link https://php.net/manual/en/function.error-reporting.php
* @param int $level [optional] <p>
* The new error_reporting
* level. It takes on either a bitmask, or named constants. Using named
* constants is strongly encouraged to ensure compatibility for future
* versions. As error levels are added, the range of integers increases,
* level. It takes on either a bitmask, or named constants. Using named
* constants is strongly encouraged to ensure compatibility for future
* versions. As error levels are added, the range of integers increases,
* so older integer-based error levels will not always behave as expected.
* </p>
* <p>
Expand Down Expand Up @@ -276,8 +276,8 @@ function error_reporting ($level = null) {}
* however it is not recommended and may cause unpredictable behavior.
* </p>
* @param bool $case_insensitive [optional] <p>
* If set to true, the constant will be defined case-insensitive.
* The default behavior is case-sensitive; i.e.
* If set to true, the constant will be defined case-insensitive.
* The default behavior is case-sensitive; i.e.
* CONSTANT and Constant represent
* different values.
* Defining case-insensitive constants is deprecated as of PHP 7.3.0.
Expand Down Expand Up @@ -402,7 +402,7 @@ function class_exists ($class_name, $autoload = true) {}
* @param bool $autoload [optional] <p>
* Whether to call &link.autoload; or not by default.
* </p>
* @return bool true if the interface given by
* @return bool true if the interface given by
* <i>interface_name</i> has been defined, false otherwise.
* @since 5.0.2
*/
Expand All @@ -418,7 +418,7 @@ function interface_exists ($interface_name, $autoload = true) {}
* function, false otherwise.
* </p>
* <p>
* This function will return false for constructs, such as
* This function will return false for constructs, such as
* <b>include_once</b> and <b>echo</b>.
*/
function function_exists ($function_name) {}
Expand All @@ -440,7 +440,7 @@ function class_alias ($original, $alias, $autoload = TRUE) {}
* </p>
* <p>
* The script originally called is considered an "included file," so it will
* be listed together with the files referenced by
* be listed together with the files referenced by
* <b>include</b> and family.
* </p>
* <p>
Expand All @@ -467,10 +467,10 @@ function get_required_files () {}
* </p>
* @param bool $allow_string [optional] <p>
* If this parameter set to false, string class name as object is not allowed.
* This also prevents from calling autoloader if the class doesn't exist.
* This also prevents from calling autoloader if the class doesn't exist.
* </p>
* @return bool This function returns true if the object <i>object</i>,
* belongs to a class which is a subclass of
* belongs to a class which is a subclass of
* <i>class_name</i>, false otherwise.
*/
function is_subclass_of ($object, $class_name, $allow_string = TRUE) {}
Expand Down Expand Up @@ -501,7 +501,7 @@ function is_a ($object, $class_name, $allow_string = FALSE) {}
* </p>
* @return array an associative array of declared properties visible from the
* current scope, with their default value.
* The resulting array elements are in the form of
* The resulting array elements are in the form of
* varname => value.
*/
function get_class_vars ($class_name) {}
Expand Down Expand Up @@ -533,8 +533,8 @@ function get_class_methods ($class_name) {}
* Generates a user-level error/warning/notice message
* @link https://php.net/manual/en/function.trigger-error.php
* @param string $error_msg <p>
* The designated error message for this error. It's limited to 1024
* characters in length. Any additional characters beyond 1024 will be
* The designated error message for this error. It's limited to 1024
* characters in length. Any additional characters beyond 1024 will be
* truncated.
* </p>
* @param int $error_type [optional] <p>
Expand All @@ -559,7 +559,7 @@ function user_error ($message, $error_type = E_USER_NOTICE) {}
* @link https://php.net/manual/en/function.set-error-handler.php
* @param callable|null $error_handler <p>
* The user function needs to accept two parameters: the error code, and a
* string describing the error. Then there are three optional parameters
* string describing the error. Then there are three optional parameters
* that may be supplied: the filename in which the error occurred, the
* line number in which the error occurred, and the context in which the
* error occurred (an array that points to the active symbol table at the
Expand Down Expand Up @@ -693,11 +693,11 @@ function create_function ($args, $code) {}
* </p>
* @return string If the given <i>handle</i> is a resource, this function
* will return a string representing its type. If the type is not identified
* by this function, the return value will be the string
* by this function, the return value will be the string
* Unknown.
* </p>
* <p>
* This function will return false and generate an error if
* This function will return false and generate an error if
* <i>handle</i> is not a resource.
*/
function get_resource_type ($handle) {}
Expand Down Expand Up @@ -813,7 +813,7 @@ function get_extension_funcs ($module_name) {}
* )
* </pre>
* </p>
* @return array
* @return array
*/
function get_defined_constants ($categorize = false) {}

Expand Down Expand Up @@ -956,14 +956,14 @@ function gc_enabled () {}
/**
* Activates the circular reference collector
* @link https://php.net/manual/en/function.gc-enable.php
* @return void
* @return void
*/
function gc_enable () {}

/**
* Deactivates the circular reference collector
* @link https://php.net/manual/en/function.gc-disable.php
* @return void
* @return void
*/
function gc_disable () {}

Expand Down
2 changes: 1 addition & 1 deletion Core/Core_c.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static function bind(Closure $closure, $newthis, $newscope = 'static') { }
* @since 7.0
*/
function call ($newthis, ...$parameters) {}

/**
* @param callable $callable
* @return Closure
Expand Down
1 change: 0 additions & 1 deletion Core/Core_d.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,3 @@
define('STDERR', fopen('php://stderr', 'w'));

define('PHP_FD_SETSIZE', 1024);

2 changes: 1 addition & 1 deletion Parle/ErrorInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class ErrorInfo

/** @var Token|null If applicable - the Parle\Token related to the error, otherwise NULL. */
public $token;
}
}
2 changes: 1 addition & 1 deletion Parle/Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ public function push(string $regex, int $id) : void {}
* @param int $pos Reset position.
*/
public function reset(int $pos) : void {}
}
}
2 changes: 1 addition & 1 deletion Parle/LexerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
class LexerException extends Exception implements Throwable
{

}
}
2 changes: 1 addition & 1 deletion Parle/ParserException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

class ParserException extends Exception implements Throwable
{
}
}
2 changes: 1 addition & 1 deletion Parle/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public function pop() : void {}
* @return void
*/
public function push($item) {}
}
}
2 changes: 1 addition & 1 deletion Parle/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ class Token

/** @var string Token value. */
public $value;
}
}
16 changes: 8 additions & 8 deletions Reflection/Reflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static function export ();
/**
* To string
* @link https://php.net/manual/en/reflector.tostring.php
* @return string
* @return string
*/
function __toString ();

Expand Down Expand Up @@ -336,7 +336,7 @@ public function isDisabled () {}
* arguments which are passed to the function much like
* call_user_func is.
* </p>
* @return mixed
* @return mixed
*/
public function invoke ($args = null) {}

Expand Down Expand Up @@ -806,7 +806,7 @@ class ReflectionClass implements Reflector {
/**
* Clones object
* @link https://php.net/manual/en/reflectionclass.clone.php
* @return void
* @return void
*/
final private function __clone () {}

Expand Down Expand Up @@ -1344,14 +1344,14 @@ class ReflectionProperty implements Reflector {
/**
* Clone
* @link https://php.net/manual/en/reflectionproperty.clone.php
* @return void
* @return void
*/
final private function __clone () {}

/**
* Export
* @link https://php.net/manual/en/reflectionproperty.export.php
* @param mixed $class
* @param mixed $class
* @param string $name <p>
* The property name.
* </p>
Expand Down Expand Up @@ -2035,15 +2035,15 @@ final class ReflectionReference
* @return self|null
*/
public static function fromArrayElement($array, $key) {}

/**
* Returns unique identifier for the reference. The return value format is unspecified
* @return int|string
*/
public function getId() {}

private function __construct() {}

private function __clone() {}
}

Expand Down
Loading

0 comments on commit eff2ef8

Please sign in to comment.