Conditions | 5 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function view() |
||
13 | { |
||
14 | if ($_REQUEST['error'] && Symphony::Log()) { |
||
15 | Symphony::Log()->pushToLog(sprintf( |
||
16 | '%s - %s%s%s', |
||
17 | 'Javascript', |
||
18 | $_REQUEST['error'], |
||
19 | ($_REQUEST['url'] ? " in file " . $_REQUEST['url'] : null), |
||
20 | ($_REQUEST['line'] ? " on line " . $_REQUEST['line'] : null) |
||
21 | ), |
||
22 | E_ERROR, true |
||
23 | ); |
||
27 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.