@@ -43,6 +43,7 @@ discard block |
||
43 | 43 | * Append html to container |
44 | 44 | * |
45 | 45 | * @var string $html |
46 | + * @param string $html |
|
46 | 47 | * @return Container |
47 | 48 | */ |
48 | 49 | |
@@ -86,6 +87,7 @@ discard block |
||
86 | 87 | * Sets inner html of container |
87 | 88 | * |
88 | 89 | * @var string $html |
90 | + * @param string $html |
|
89 | 91 | * @return Container |
90 | 92 | */ |
91 | 93 | public function html($html) |
@@ -131,7 +131,7 @@ |
||
131 | 131 | */ |
132 | 132 | public function animate($enable = false) |
133 | 133 | { |
134 | - $this->setOption(self::OPTION_ANIMATE, (bool)$enable); |
|
134 | + $this->setOption(self::OPTION_ANIMATE, (bool) $enable); |
|
135 | 135 | |
136 | 136 | return $this; |
137 | 137 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | $query = ''; |
7 | 7 | |
8 | 8 | if (!empty($_GET['q'])) { |
9 | - $query = strtolower($_GET['q']); |
|
9 | + $query = strtolower($_GET['q']); |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | if (!empty($_GET['id'])) { |
@@ -18,12 +18,12 @@ |
||
18 | 18 | /** |
19 | 19 | * Normally, you would get the new row from partial |
20 | 20 | */ |
21 | -$newRowId = rand(4,100); |
|
21 | +$newRowId = rand(4, 100); |
|
22 | 22 | $newRow = " <tr id='row{$newRowId}'> |
23 | 23 | <td>{$newRowId}</td> |
24 | - <td>". (!empty($_POST['firstname'])?$_POST['firstname']:'Test') ."</td> |
|
25 | - <td>". (!empty($_POST['lastname'])?$_POST['lastname']:'Row') ."</td> |
|
26 | - <td>". (!empty($_POST['username'])?$_POST['username']:'Love it yet?') ."</td> |
|
24 | + <td>".(!empty($_POST['firstname']) ? $_POST['firstname'] : 'Test')."</td> |
|
25 | + <td>". (!empty($_POST['lastname']) ? $_POST['lastname'] : 'Row')."</td> |
|
26 | + <td>". (!empty($_POST['username']) ? $_POST['username'] : 'Love it yet?')."</td> |
|
27 | 27 | <td> |
28 | 28 | <a href='/example/backend.php?q=edit&id=row{$newRowId}' class='btn' data-ajaxcom>Edit</a> |
29 | 29 | <a href='/example/backend.php?q=delete-by-id&id=row{$newRowId}' class='btn btn-danger' data-ajaxcom>Delete</a> |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $this->setOption(self::OPTION_HTML, $html); |
32 | 32 | $this->setOption(self::OPTION_TYPE, $type); |
33 | - $this->setOption(self::OPTION_AUTOREMOVE, (bool)$autoremove); |
|
33 | + $this->setOption(self::OPTION_AUTOREMOVE, (bool) $autoremove); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |