DictionaryForumContacts

 Barbuletta

link 23.12.2016 8:54 
Subject: Просмотрите,плиз, какие слова следует заменить, чтобы выглядело менее плачевно=) hobby
3 Форматирование кода
3.1 PHP
3.1.1 Классы
Класс объявляется в начале файла при помощи ключевого слова class, за которым на этой же строке следует название класса.
Доплонительные спецификаторы класса по возможности записываются но той же строке, иначе переносятся на следующую (например, extends, implements)
Если хотя бы один спецификатор переносится на следующую строку, то тогда каждый следующий спецификатор записывается с новой строки, в начале которой делается один отступ.

3. Code formatting
3.1 PHP
3.1.1. Classes

The class should be mentioned at the beginning of the file with the help of the keyword “class”, which is followed by the name of the class on the same line.

Additional class specifiers should be written on the same line when possible, otherwise, they should be put on another line (for instance, extends, implements)

If at least one specifier is moved to another line, then every next specifier should be written from the new line with the first line indent.

 Oleg Sollogub

link 23.12.2016 9:41 
mentioned
next

 Анна Ф

link 23.12.2016 9:48 
Класс объявляется в начале файла при помощи ключевого слова class, за которым на этой же строке следует название класса.
Доплонительные спецификаторы класса по возможности записываются но той же строке, иначе переносятся на следующую (например, extends, implements)
Если хотя бы один спецификатор переносится на следующую строку, то тогда каждый следующий спецификатор записывается с новой строки, в начале которой делается один отступ.

If possible, additional specifiers are written on the same line. Otherwise, these should be written on the next line (for instance, ...)
If at least one specifier is moved ..., then, every following ...

 asocialite

link 23.12.2016 9:50 
навскидку:
объявляется = is declared
при помощи = using
один отступ = single space indent[ation]

 johnstephenson

link 23.12.2016 15:05 
'Доплонительные спецификаторы класса по возможности записываются но той же строке, иначе переносятся на следующую' = 'Any additional class specificiers should be written on this same line. Where this is not possible they should be carried over onto the following line.'

'Если хотя бы один спецификатор переносится на следующую строку, то тогда каждый следующий спецификатор записывается с новой строки, в начале которой делается ......' = 'Where one or more specifiers have to be carried over, each one should be placed on a new line, preceded by ......'

 SirReal moderator

link 23.12.2016 15:34 
где Вы тут увидели комп. жар.?

и направление перевода указывайте, пожалуйста.

 muzungu

link 23.12.2016 16:48 
Class is declared at the beginning of a file by the keyword "class" followed by its name in the same line.

Additional class specifiers are preferably written in the same line, otherwise they are carried over into the next line.

If even a single specifier is carried over into the next line, then every next specifier is written in a new line after an indent.

 

You need to be logged in to post in the forum