\GB_Transcriptor
Synopsis
- // constants
- const MODE_TRANSCRIBE = 1;
- const MODE_TRANSLITERATE = 2;
- // members
- public static array $trans_table = ;
- // methods
- public static string transcript()
- public static boolean add_transcription()
- public static boolean has_transcription()
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
85 - 153 | CyclomaticComplexity | The method transcript() has a Cyclomatic Complexity of 26. The configured cyclomatic complexity threshold is 10. |
85 - 153 | NPathComplexity | The method transcript() has an NPath complexity of 182250. The configured NPath complexity threshold is 200. |
120 | ShortVariable | Avoid variables with short names like $tr. Configured minimum length is 3. |
124 | ShortVariable | Avoid variables with short names like $t. Configured minimum length is 3. |
173 | ShortVariable | Avoid variables with short names like $tr. Configured minimum length is 3. |
206 - 228 | CyclomaticComplexity | The method has_transcription() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
206 - 228 | NPathComplexity | The method has_transcription() has an NPath complexity of 250. The configured NPath complexity threshold is 200. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
68 | 12 | error | Visibility must be declared on property "$trans_table" |
85 | 12 | error | Visibility must be declared on method "transcript" |
88 | 9 | error | Inline control structures are not allowed |
91 | 9 | error | Inline control structures are not allowed |
97 | 9 | error | Inline control structures are not allowed |
97 | 153 | warning | Line exceeds 120 characters; contains 153 characters |
101 | 13 | error | Inline control structures are not allowed |
104 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
106 | 13 | error | Inline control structures are not allowed |
106 | 136 | warning | Line exceeds 120 characters; contains 136 characters |
113 | 13 | error | Inline control structures are not allowed |
128 | 13 | error | Inline control structures are not allowed |
134 | 9 | error | Inline control structures are not allowed |
135 | 122 | warning | Line exceeds 120 characters; contains 122 characters |
136 | 9 | error | Inline control structures are not allowed |
173 | 12 | error | Method name "GB_Transcriptor::add_transcription" is not in camel caps format |
173 | 12 | error | Visibility must be declared on method "add_transcription" |
178 | 9 | error | Inline control structures are not allowed |
180 | 9 | error | Inline control structures are not allowed |
182 | 9 | error | Inline control structures are not allowed |
185 | 9 | error | Inline control structures are not allowed |
206 | 12 | error | Method name "GB_Transcriptor::has_transcription" is not in camel caps format |
206 | 12 | error | Visibility must be declared on method "has_transcription" |
211 | 9 | error | Inline control structures are not allowed |
214 | 9 | error | Inline control structures are not allowed |
214 | 153 | warning | Line exceeds 120 characters; contains 153 characters |
218 | 13 | error | Inline control structures are not allowed |
221 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
223 | 13 | error | Inline control structures are not allowed |
223 | 136 | warning | Line exceeds 120 characters; contains 136 characters |
Constants
Name | Value |
---|---|
MODE_TRANSCRIBE | 1 |
MODE_TRANSLITERATE | 2 |
Members
public
-
$trans_table
A multidimentional array of text translation rules from one language to another.
Methods
public
- add_transcription() — Add new transcription table.
- has_transcription() — Check whether there is a transcription table for given language pair and mode.
- transcript() — Transcript text from one language to another.
History
-
2017-05-17T09:50:09+00:00 (commit #bcd6e9c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied
-
2015-04-02T11:07:52+00:00 (commit #3e77f3e)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Życie
-
2015-04-02T11:03:22+00:00 (commit #4494482)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Szymon
-
2015-04-02T10:59:18+00:00 (commit #fbc0d7f)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Rzytka
-
2015-04-02T10:50:41+00:00 (commit #8577356)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Życie
-
2015-04-02T10:38:23+00:00 (commit #1b0fb62)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Żołnierz Wolności
-
2015-04-02T10:21:47+00:00 (commit #15fd13f)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Zając
-
2015-04-02T10:13:28+00:00 (commit #52ed016)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Władysław
-
2015-04-02T10:08:12+00:00 (commit #da5dab0)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Wałęsa
-
2015-04-02T09:24:20+00:00 (commit #4789d4c)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Rzeczywistość
-
2015-04-02T07:32:26+00:00 (commit #f3e6919)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Przyjaciółka
-
2015-04-02T07:16:45+00:00 (commit #1e1676f)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Osjaków
-
2015-04-02T07:09:50+00:00 (commit #772fa23)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Niedźwiedź
-
2015-04-02T06:58:58+00:00 (commit #15c5ff7)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Łodyński
-
2015-04-02T06:42:56+00:00 (commit #17dcf2a)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
Krzysztof