Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/25-strings/20-string-concatenation/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

```text
'Hello' . ', ' . 'World!'
└──┬──┘ └┬┘ └──┬───┘
└───┬───┘ │
'Hello, ' . 'World!'
└──────┬───────┘
└──┬──┘ └┬┘ └──┬───┘
└───┬───┘
'Hello, ' . 'World!'

Check notice on line 30 in modules/25-strings/20-string-concatenation/ru/README.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] modules/25-strings/20-string-concatenation/ru/README.md#L30

File types are normally capitalized. (FILE_EXTENSIONS_CASE[1]) Suggestions: `PHP` URL: https://languagetool.org/insights/post/spelling-capital-letters/ Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1 Category: CASING
Raw output
modules/25-strings/20-string-concatenation/ru/README.md:30:6: File types are normally capitalized. (FILE_EXTENSIONS_CASE[1])
 Suggestions: `PHP`
 URL: https://languagetool.org/insights/post/spelling-capital-letters/ 
 Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1
 Category: CASING
└───────────┘
'Hello, World!'
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
Каждое значение выводится на отдельной строке.

```text
distance ──────┐
├──→ fuel ──────┐
fuelConsumption ───├──→ tripCost ──────┐
├──→ perPerson
fuelPrice ─────────────────────┘
passengers ────────────────────────────────────────
distance ──────
├──→ fuel ──┐
fuelConsumption ┘
├──→ tripCost ──┐
fuelPrice ──────────────────
├──→ perPerson
passengers ─────────────────────────────────┘
```
28 changes: 15 additions & 13 deletions modules/48-conditionals/50-else-if/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,21 @@ print_r(getTypeOfSentence('No!') . "\n"); // => Sentence is exclamation
Теперь все условия выстроились в единую конструкцию. Ключевое слово `elseif` означает «если не выполнено предыдущее условие, но выполнено текущее».

```text
┌─────────────────┐
│ условие 1? │
└────┬────────┬───┘
true │ │ false
↓ ↓
┌──────────┐ ┌─────────────────┐
│ тело if │ │ условие 2? │
└──────────┘ └────┬────────┬───┘
true │ │ false
↓ ↓
┌────────────┐ ┌──────────┐
│тело elseif │ │ тело else│
└────────────┘ └──────────┘
┌────────────┐
│ условие 1? │
└──────┬─────┘
┌─────────┴──────────┐
true │ │ false
↓ ↓
┌─────────┐ ┌────────────┐
│ тело if │ │ условие 2? │
└─────────┘ └──────┬─────┘
┌──────┴───────┐
true │ │ false
↓ ↓
┌─────────────┐ ┌───────────┐
│ тело elseif │ │ тело else │
└─────────────┘ └───────────┘
```

Логика функции устроена так. Если последний символ `?`, возвращается `'question'`. Если последний символ `!`, возвращается `'exclamation'`. Во всех остальных случаях возвращается `'normal'`.
Expand Down
Loading