Skip to content

Commit c58314b

Browse files
committed
Code documentation is translated into English
1 parent 26e57c2 commit c58314b

File tree

7 files changed

+341
-403
lines changed

7 files changed

+341
-403
lines changed

CONTRIBUTING.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Language
2+
3+
We speak:
4+
5+
* English
6+
* Русский
7+
8+
You are welcome to submit issues in any of this languages.
9+
10+
Comments in the code should be written in English.

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "aiger-team/image-tools",
33
"type": "library",
4-
"description": "Light PHP tool for editing images using immutable objects style",
4+
"description": "Light image editing tool with immutable objects style",
55
"keywords": [
66
"images",
77
"pictures",
88
"modify",
9+
"edit",
910
"resize",
1011
"crop",
1112
"rotate",
@@ -14,11 +15,11 @@
1415
"opacity",
1516
"transparent",
1617
"k-means",
17-
"chaining",
1818
"watermark",
19-
"stamp"
19+
"stamp",
20+
"immutable"
2021
],
21-
"homepage": "https://github.com/FinesseRus/ImageTools",
22+
"homepage": "https://github.com/AigerTeam/ImageTools",
2223
"license": "MIT",
2324
"authors": [
2425
{

examples/resize/image.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use AigerTeam\ImageTools\ImageFactory;
99

10-
// Обработка изображения
10+
// Processing image
1111
$image = ( new ImageFactory() )
1212
->openFile( 'example.jpg' )
1313
->resize(
@@ -19,6 +19,6 @@
1919
$_GET[ 'alignVer' ]
2020
);
2121

22-
// Вывод
22+
// Output image
2323
header( 'Content-type: ' . image_type_to_mime_type( $image->getRecommendedType() ) );
2424
$image->display();

src/Exceptions/FileException.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
/**
66
* Class FileException
77
*
8-
* Исключение, выбрасываемое при ошибке, связанной с работой с файлом.
8+
* Thrown in case of a file error.
99
*
1010
* @author Finesse
1111
* @package AigerTeam\ImageTools\Exceptions
1212
*/
1313
class FileException extends \Exception
1414
{
15+
/**
16+
* Path to the file in the filesystem on which error has occured
17+
*/
1518
protected $path;
1619

1720
/**
1821
* {@inheritDoc}
1922
*
20-
* @param string|null $path Путь в файловой системе, на котором произошла ошибка
23+
* @param string|null $path Path to the file in the filesystem on which error has occured
2124
*/
2225
public function __construct( $message, $path = null, $code = 0, \Exception $previous = null )
2326
{
@@ -26,10 +29,10 @@ public function __construct( $message, $path = null, $code = 0, \Exception $prev
2629
}
2730

2831
/**
29-
* @var string|null Возвращает путь в файловой системе, на котором произошла ошибка
32+
* @return string|null Path to the file in the filesystem on which error has occured (if provided)
3033
*/
3134
public function getPath()
3235
{
3336
return $this->path;
3437
}
35-
}
38+
}

src/Exceptions/ImageFileException.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
/**
66
* Class FileException
77
*
8-
* Исключение, выбрасываемое, когда не удаётся получить изображение из файла.
8+
* Thrown when image can't be retrieved from the file.
99
*
1010
* @author Finesse
1111
* @package AigerTeam\ImageTools\Exceptions
1212
*/
13-
class ImageFileException extends FileException
14-
{
15-
16-
}
13+
class ImageFileException extends FileException {}

0 commit comments

Comments
 (0)