Compare commits
2 Commits
d4ecc5aa67
...
6a0c90bf26
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a0c90bf26 | ||
|
|
7744e83086 |
@@ -33,8 +33,8 @@ local function class_name(args, snip)
|
|||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
s('du', { t 'dump(', i(1), t ');' }),
|
s('du', { t 'dump(', i(0), t ');' }),
|
||||||
s('dt', { t '\\PhpStan\\dumpType(', i(1), t ');' }),
|
s('dt', { t '\\PhpStan\\dumpType(', i(0), t ');' }),
|
||||||
s('ql', {
|
s('ql', {
|
||||||
t '\\Illuminate\\Support\\Facades\\DB::listen(function (\\Illuminate\\Database\\Events\\QueryExecuted $e) {',
|
t '\\Illuminate\\Support\\Facades\\DB::listen(function (\\Illuminate\\Database\\Events\\QueryExecuted $e) {',
|
||||||
t { '', ' dump($e->sql, $e->bindings);' },
|
t { '', ' dump($e->sql, $e->bindings);' },
|
||||||
@@ -45,21 +45,21 @@ return {
|
|||||||
i(1),
|
i(1),
|
||||||
t ', function () {',
|
t ', function () {',
|
||||||
t { '', ' ' },
|
t { '', ' ' },
|
||||||
i(2),
|
i(0),
|
||||||
t { '', ');' },
|
t { '', ');' },
|
||||||
}),
|
}),
|
||||||
s('/**', {
|
s('/**', {
|
||||||
t '/**',
|
t '/**',
|
||||||
t { '', ' * ' },
|
t { '', ' * ' },
|
||||||
i(1),
|
i(0),
|
||||||
t { '', ' */' },
|
t { '', ' */' },
|
||||||
}),
|
}),
|
||||||
s('@p', { t '@property ', i(1), t ' $', i(2) }),
|
s('@p', { t '@property ', i(1), t ' $', i(0) }),
|
||||||
s('@pb', { t '@property bool $', i(1) }),
|
s('@pb', { t '@property bool $', i(0) }),
|
||||||
s('@ps', { t '@property string $', i(1) }),
|
s('@ps', { t '@property string $', i(0) }),
|
||||||
s('@pi', { t '@property int $', i(1) }),
|
s('@pi', { t '@property int $', i(0) }),
|
||||||
s('@pc', { t '@property \\Illuminate\\Support\\Collection<int, ', i(1), t '> $', i(2) }),
|
s('@pc', { t '@property \\Illuminate\\Support\\Collection<int, ', i(1), t '> $', i(0) }),
|
||||||
s('@pd', { t '@property \\Illuminate\\Support\\Carbon $', i(1) }),
|
s('@pd', { t '@property \\Illuminate\\Support\\Carbon $', i(0) }),
|
||||||
s('@pp', {
|
s('@pp', {
|
||||||
t '/**',
|
t '/**',
|
||||||
t { '', ' * @property int $id' },
|
t { '', ' * @property int $id' },
|
||||||
@@ -69,21 +69,23 @@ return {
|
|||||||
t { '', ' * @property \\Illuminate\\Support\\Carbon $updated_at' },
|
t { '', ' * @property \\Illuminate\\Support\\Carbon $updated_at' },
|
||||||
t { '', ' *', ' * Relationships' },
|
t { '', ' *', ' * Relationships' },
|
||||||
t { '', ' * ' },
|
t { '', ' * ' },
|
||||||
i(2),
|
i(0),
|
||||||
t { '', ' */' },
|
t { '', ' */' },
|
||||||
}),
|
}),
|
||||||
s('php', {
|
s('php', {
|
||||||
t '<?php',
|
t '<?php',
|
||||||
t { '', '', '' },
|
t { '', '' },
|
||||||
t 'namespace ',
|
t 'namespace ',
|
||||||
f(psr_namespace, {}),
|
f(psr_namespace, {}),
|
||||||
t ';',
|
t ';',
|
||||||
t { '', '', 'class ' },
|
t { '', '', '/**', ' * Class ' },
|
||||||
f(class_name, {}),
|
f(class_name, {}),
|
||||||
t { '', '{' },
|
t { '', ' */', 'class ' },
|
||||||
t { '', '' },
|
f(class_name, {}),
|
||||||
i(0),
|
i(1),
|
||||||
t { '', '', '}' },
|
t { '', '{', ' public function __construct()', ' {', ' ' },
|
||||||
|
i(0, '// TODO: Implement constructor'),
|
||||||
|
t { '', ' }', '}' },
|
||||||
}),
|
}),
|
||||||
s('pub', {
|
s('pub', {
|
||||||
t 'public function ',
|
t 'public function ',
|
||||||
@@ -93,7 +95,7 @@ return {
|
|||||||
t ')',
|
t ')',
|
||||||
t { '', '{' },
|
t { '', '{' },
|
||||||
t { '', ' ' },
|
t { '', ' ' },
|
||||||
i(3),
|
i(0),
|
||||||
t { '', '}' },
|
t { '', '}' },
|
||||||
}),
|
}),
|
||||||
s('pro', {
|
s('pro', {
|
||||||
@@ -104,7 +106,7 @@ return {
|
|||||||
t ')',
|
t ')',
|
||||||
t { '', '{' },
|
t { '', '{' },
|
||||||
t { '', ' ' },
|
t { '', ' ' },
|
||||||
i(3),
|
i(0),
|
||||||
t { '', '}' },
|
t { '', '}' },
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user