Skip to content

Commit

Permalink
Merge pull request JetBrains#569 from King2500/patch-1
Browse files Browse the repository at this point in the history
Fix PhpDocs for standard defines
  • Loading branch information
pestretsov authored Apr 24, 2019
2 parents 05e2ac4 + 82ac145 commit 707d763
Showing 1 changed file with 33 additions and 69 deletions.
102 changes: 33 additions & 69 deletions standard/standard_defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,26 +136,30 @@
define ('NAN', NAN);

/**
* Round halves up [5.3.0]
* Round halves up
* @link https://php.net/manual/en/math.constants.php
* @since 5.3.0
*/
define ('PHP_ROUND_HALF_UP', 1);

/**
* Round halves down [5.3.0]
* Round halves down
* @link https://php.net/manual/en/math.constants.php
* @since 5.3.0
*/
define ('PHP_ROUND_HALF_DOWN', 2);

/**
* Round halves to even numbers [5.3.0]
* Round halves to even numbers
* @link https://php.net/manual/en/math.constants.php
* @since 5.3.0
*/
define ('PHP_ROUND_HALF_EVEN', 3);

/**
* Round halves to odd numbers [5.3.0]
* Round halves to odd numbers
* @link https://php.net/manual/en/math.constants.php
* @since 5.3.0
*/
define ('PHP_ROUND_HALF_ODD', 4);
define ('INFO_GENERAL', 1);
Expand Down Expand Up @@ -590,23 +594,19 @@
define ('STREAM_SERVER_LISTEN', 8);

/**
* Search for filename in
* include_path
* @since 5
* Search for filename in include_path
* @link https://php.net/manual/en/filesystem.constants.php
*/
define ('FILE_USE_INCLUDE_PATH', 1);

/**
* Strip EOL characters
* @since PHP 5
* @link https://php.net/manual/en/filesystem.constants.php
*/
define ('FILE_IGNORE_NEW_LINES', 2);

/**
* Skip empty lines
* @since PHP 5
* @link https://php.net/manual/en/filesystem.constants.php
*/
define ('FILE_SKIP_EMPTY_LINES', 4);
Expand Down Expand Up @@ -852,8 +852,7 @@
define ('ASSERT_EXCEPTION', 6);

/**
* Flag indicating if the stream
* used the include path.
* Flag indicating if the stream used the include path.
* @link https://php.net/manual/en/stream.constants.php
*/
define ('STREAM_USE_PATH', 1);
Expand Down Expand Up @@ -911,157 +910,122 @@
define ('STREAM_CAST_FOR_SELECT', 3);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_GIF', 1);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_JPEG', 2);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_PNG', 3);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_SWF', 4);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_PSD', 5);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_BMP', 6);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_TIFF_II', 7);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_TIFF_MM', 8);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_JPC', 9);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_JP2', 10);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_JPX', 11);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_JB2', 12);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_SWC', 13);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_IFF', 14);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_WBMP', 15);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_JPEG2000', 9);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
*/
define ('IMAGETYPE_XBM', 16);

/**
* Image type constant used by the
* image_type_to_mime_type and
* image_type_to_extension functions.
* (Available as of PHP 5.3.0)
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
* @since 5.3.0
*/
define ('IMAGETYPE_ICO', 17);
define ('IMAGETYPE_UNKNOWN', 0);
define ('IMAGETYPE_COUNT', 18);

/**
* Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions
* Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions.
* @link https://php.net/manual/en/image.constants.php
* @since 7.1.0
*/
define('IMAGETYPE_WEBP', 18);
define('IMAGETYPE_UNKNOWN', 0);
define('IMAGETYPE_COUNT', 18);

/**
* IPv4 Address Resource
Expand Down

0 comments on commit 707d763

Please sign in to comment.