From 31b6e4ba681fe51bf677ff39648d4489254bd993 Mon Sep 17 00:00:00 2001 From: Patrick Samson Date: Mon, 18 Dec 2017 15:15:01 -0500 Subject: [PATCH 1/2] Add Blade @csrf and @method directives --- snippets/Blade/Blade-csrf.sublime-snippet | 8 ++++++++ snippets/Blade/Blade-method.sublime-snippet | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 snippets/Blade/Blade-csrf.sublime-snippet create mode 100755 snippets/Blade/Blade-method.sublime-snippet diff --git a/snippets/Blade/Blade-csrf.sublime-snippet b/snippets/Blade/Blade-csrf.sublime-snippet new file mode 100644 index 0000000..549065c --- /dev/null +++ b/snippets/Blade/Blade-csrf.sublime-snippet @@ -0,0 +1,8 @@ + + + Blade::csrf + text.blade + Blade @csrf + diff --git a/snippets/Blade/Blade-method.sublime-snippet b/snippets/Blade/Blade-method.sublime-snippet new file mode 100755 index 0000000..292b372 --- /dev/null +++ b/snippets/Blade/Blade-method.sublime-snippet @@ -0,0 +1,8 @@ + + + Blade::method + text.blade + Blade @method + From 663c19848dcb8eeec18653c918a8cfe52ecfc317 Mon Sep 17 00:00:00 2001 From: Patrick Samson Date: Mon, 31 Dec 2018 00:27:52 -0500 Subject: [PATCH 2/2] Add missing functions --- snippets/Helper/Helper-array-head.sublime-snippet | 8 ++++++++ snippets/Helper/Helper-array-last.sublime-snippet | 6 ++---- snippets/Helper/Helper-array-wrap.sublime-snippet | 8 ++++++++ snippets/Helper/Helper-data-fill.sublime-snippet | 8 ++++++++ snippets/Helper/Helper-data-get.sublime-snippet | 8 ++++++++ snippets/Helper/Helper-data-set.sublime-snippet | 8 ++++++++ snippets/Helper/Helper-misc-cache_set.sublime-snippet | 8 -------- snippets/Helper/Helper-misc-object_get.sublime-snippet | 8 -------- snippets/Helper/Helper-strings_plural.sublime-snippet | 8 -------- snippets/Schema/Schema-table-update.sublime-snippet | 2 +- 10 files changed, 43 insertions(+), 29 deletions(-) create mode 100755 snippets/Helper/Helper-array-head.sublime-snippet create mode 100755 snippets/Helper/Helper-array-wrap.sublime-snippet create mode 100755 snippets/Helper/Helper-data-fill.sublime-snippet create mode 100755 snippets/Helper/Helper-data-get.sublime-snippet create mode 100755 snippets/Helper/Helper-data-set.sublime-snippet delete mode 100755 snippets/Helper/Helper-misc-cache_set.sublime-snippet delete mode 100755 snippets/Helper/Helper-misc-object_get.sublime-snippet delete mode 100755 snippets/Helper/Helper-strings_plural.sublime-snippet diff --git a/snippets/Helper/Helper-array-head.sublime-snippet b/snippets/Helper/Helper-array-head.sublime-snippet new file mode 100755 index 0000000..0da61db --- /dev/null +++ b/snippets/Helper/Helper-array-head.sublime-snippet @@ -0,0 +1,8 @@ + + + Helper::array_head + source.php + Returns the first element in the given array. + diff --git a/snippets/Helper/Helper-array-last.sublime-snippet b/snippets/Helper/Helper-array-last.sublime-snippet index 2d273eb..0ca26a4 100755 --- a/snippets/Helper/Helper-array-last.sublime-snippet +++ b/snippets/Helper/Helper-array-last.sublime-snippet @@ -1,10 +1,8 @@ = 150;} -}); +last(${1:\$array}); ]]> Helper::array_last source.php - Return the last element in an array passing a given truth test. + Returns the last element in the given array. diff --git a/snippets/Helper/Helper-array-wrap.sublime-snippet b/snippets/Helper/Helper-array-wrap.sublime-snippet new file mode 100755 index 0000000..dc48d4b --- /dev/null +++ b/snippets/Helper/Helper-array-wrap.sublime-snippet @@ -0,0 +1,8 @@ + + + Helper::array_wrap + source.php + Wraps the given value in an array. If the given value is already an array it will not be changed. + diff --git a/snippets/Helper/Helper-data-fill.sublime-snippet b/snippets/Helper/Helper-data-fill.sublime-snippet new file mode 100755 index 0000000..9ca6d35 --- /dev/null +++ b/snippets/Helper/Helper-data-fill.sublime-snippet @@ -0,0 +1,8 @@ + + + Helper::data_fill + source.php + Sets a missing value within a nested array or object using "dot" notation. + diff --git a/snippets/Helper/Helper-data-get.sublime-snippet b/snippets/Helper/Helper-data-get.sublime-snippet new file mode 100755 index 0000000..1d9dcc8 --- /dev/null +++ b/snippets/Helper/Helper-data-get.sublime-snippet @@ -0,0 +1,8 @@ + + + Helper::data_get + source.php + Retrieve a value from a nested array or object using "dot" notation. + diff --git a/snippets/Helper/Helper-data-set.sublime-snippet b/snippets/Helper/Helper-data-set.sublime-snippet new file mode 100755 index 0000000..7889886 --- /dev/null +++ b/snippets/Helper/Helper-data-set.sublime-snippet @@ -0,0 +1,8 @@ + + + Helper::data_set + source.php + Sets a value within a nested array or object using "dot" notation. + diff --git a/snippets/Helper/Helper-misc-cache_set.sublime-snippet b/snippets/Helper/Helper-misc-cache_set.sublime-snippet deleted file mode 100755 index ec43ff8..0000000 --- a/snippets/Helper/Helper-misc-cache_set.sublime-snippet +++ /dev/null @@ -1,8 +0,0 @@ - - ${2:\$value}], ${3:minutes}); -]]> - Helper::misc-cache_set - source.php - Add items to the cache. - diff --git a/snippets/Helper/Helper-misc-object_get.sublime-snippet b/snippets/Helper/Helper-misc-object_get.sublime-snippet deleted file mode 100755 index 9eb602d..0000000 --- a/snippets/Helper/Helper-misc-object_get.sublime-snippet +++ /dev/null @@ -1,8 +0,0 @@ - - - Helper::misc-object_get - source.php - Get an item from an object using "dot" notation. - diff --git a/snippets/Helper/Helper-strings_plural.sublime-snippet b/snippets/Helper/Helper-strings_plural.sublime-snippet deleted file mode 100755 index ae8a0a8..0000000 --- a/snippets/Helper/Helper-strings_plural.sublime-snippet +++ /dev/null @@ -1,8 +0,0 @@ - - - Helper::strings-str_plural - source.php - Convert a string to its plural form (English only). - diff --git a/snippets/Schema/Schema-table-update.sublime-snippet b/snippets/Schema/Schema-table-update.sublime-snippet index 14666d6..4d8d7de 100755 --- a/snippets/Schema/Schema-table-update.sublime-snippet +++ b/snippets/Schema/Schema-table-update.sublime-snippet @@ -1,6 +1,6 @@