@@ -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 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | if ($value === true || (empty($value) && $value != 0)) { |
34 | 34 | $list[] = $key; |
35 | 35 | } else { |
36 | - $list[] = $key.'="'.$value.'"'; |
|
36 | + $list[] = $key . '="' . $value . '"'; |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | self::$cols = []; |
64 | 64 | self::$t['rows'] = null; |
65 | 65 | } else { |
66 | - echo 'Existing table-id used in table::create(): '.$items; |
|
66 | + echo 'Existing table-id used in table::create(): ' . $items; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
@@ -80,18 +80,17 @@ discard block |
||
80 | 80 | case 3: return static::$$name[$p[0]][$p[1]][$p[2]] === $value; |
81 | 81 | case 2: return static::$$name[$p[0]][$p[1]] === $value; |
82 | 82 | case 1: return $p[0] === '∞' ? //request is to the last one |
83 | - static::$$name[(count(static::$$name) - 1)] === $value : |
|
84 | - static::$$name[$p[0]] === $value; |
|
83 | + static::$$name[(count(static::$$name) - 1)] === $value : static::$$name[$p[0]] === $value; |
|
85 | 84 | case 0: return static::$$name === $value; |
86 | 85 | default: |
87 | 86 | $oops = implode($p); |
88 | - throw new Exception('Missing value ('.$oops.').'); |
|
87 | + throw new Exception('Missing value (' . $oops . ').'); |
|
89 | 88 | } |
90 | 89 | } else { |
91 | - throw new Exception('Undefined property ('.$name.').'); |
|
90 | + throw new Exception('Undefined property (' . $name . ').'); |
|
92 | 91 | } |
93 | 92 | } catch (Exception $e) { |
94 | - echo 'Caught exception: ', $e->getMessage(), "\n"; |
|
93 | + echo 'Caught exception: ', $e->getMessage(), "\n"; |
|
95 | 94 | } |
96 | 95 | |
97 | 96 | return false; |