1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 19:31:31 +02:00

Flextype Core: Snippets API - refactoring. #186

This commit is contained in:
Awilum
2019-08-17 23:38:17 +03:00
parent 1274f38fd8
commit b816ffece1

View File

@@ -168,7 +168,7 @@ class Snippets
}
/**
* Delete snippet.
* Delete snippet
*
* @param string $id Snippet id
*
@@ -193,7 +193,7 @@ class Snippets
*/
public function copy(string $id, string $new_id) : bool
{
return Filesystem::copy($this->_file_location($id), $this->_file_location($new_id), false);
return Filesystem::copy($this->_file_location($id), $this->_file_location($new_id));
}
/**
@@ -211,7 +211,7 @@ class Snippets
}
/**
* Helper private method _exec_snippet
* Helper method _exec_snippet
*
* @param array $vars Vars
*
@@ -257,6 +257,8 @@ class Snippets
*
* @param string $id Snippet id
*
* @return string Snippet file path
*
* @access private
*/
private function _file_location(string $id) : string
@@ -267,6 +269,8 @@ class Snippets
/**
* Helper method _dir_location
*
* @return string Snippet dir path
*
* @access private
*/
private function _dir_location() : string