@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | |
18 | 18 | public static function assets($path = '/public/table') |
19 | 19 | { |
20 | - return "<script src=\"{$path}/table_helper.js\" defer></script>\n\t". |
|
21 | - "<script src=\"{$path}/table.js\" defer></script>\n\t". |
|
20 | + return "<script src=\"{$path}/table_helper.js\" defer></script>\n\t" . |
|
21 | + "<script src=\"{$path}/table.js\" defer></script>\n\t" . |
|
22 | 22 | "<link href=\"{$path}/table.css\" rel=\"stylesheet\">\n"; |
23 | 23 | } |
24 | 24 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | if ($value === true || (empty($value) && $value != 0)) { |
36 | 36 | $list[] = $key; |
37 | 37 | } else { |
38 | - $list[] = $key.'="'.$value.'"'; |
|
38 | + $list[] = $key . '="' . $value . '"'; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | self::$cols = []; |
72 | 72 | self::$t['rows'] = null; |
73 | 73 | } else { |
74 | - echo 'Existing table-id used in table::create(): '.$items; |
|
74 | + echo 'Existing table-id used in table::create(): ' . $items; |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $nodes = explode('.', $property); |
85 | 85 | $name = array_shift($nodes); |
86 | 86 | if (property_exists(__CLASS__, $name)) { |
87 | - $val = function (&$val) use ($nodes) { |
|
87 | + $val = function(&$val) use ($nodes) { |
|
88 | 88 | $temp = &$val; |
89 | 89 | foreach ($nodes as $key) { |
90 | 90 | if ($key === 'last') { |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | return $v === $value; |
101 | 101 | } |
102 | 102 | |
103 | - throw new Exception('Missing value ('.implode($nodes).').'); |
|
103 | + throw new Exception('Missing value (' . implode($nodes) . ').'); |
|
104 | 104 | } |
105 | 105 | |
106 | - throw new Exception('Undefined property ('.$name.').'); |
|
106 | + throw new Exception('Undefined property (' . $name . ').'); |
|
107 | 107 | } catch (Exception $e) { |
108 | - echo 'Caught exception: ', $e->getMessage(), "\n"; |
|
108 | + echo 'Caught exception: ', $e->getMessage(), "\n"; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | return false; |
@@ -119,7 +119,8 @@ |
||
119 | 119 | * |
120 | 120 | * @return mixed |
121 | 121 | */ |
122 | - protected static function filterInput(int $type, string $variable_name) { |
|
122 | + protected static function filterInput(int $type, string $variable_name) |
|
123 | + { |
|
123 | 124 | return filter_input($type, $variable_name); |
124 | 125 | } |
125 | 126 | } |