summaryrefslogtreecommitdiff
path: root/src/helpers.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-06 13:43:57 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-06 13:43:57 +0100
commit8b5b9e2c65193171a12bf99a8df860a66e6900a5 (patch)
treeeed7c815dfa7f6b034dff3e758e6578d26e3d81e /src/helpers.php
parent2cce967eb09edd6ef35238c68f8ff5ed2348f5fd (diff)
src/: Formatting, doc block hints and cleanup
Diffstat (limited to 'src/helpers.php')
-rw-r--r--src/helpers.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/helpers.php b/src/helpers.php
index 051b78a3..796b8764 100644
--- a/src/helpers.php
+++ b/src/helpers.php
@@ -52,6 +52,7 @@ function base_path($path = '')
*/
function config($key = null, $default = null)
{
+ /** @var Config $config */
$config = app('config');
if (empty($key)) {
@@ -119,6 +120,7 @@ function response($content = '', $status = 200, $headers = [])
*/
function session($key = null, $default = null)
{
+ /** @var SessionInterface $session */
$session = app('session');
if (is_null($key)) {
@@ -131,8 +133,8 @@ function session($key = null, $default = null)
/**
* Translate the given message
*
- * @param string $key
- * @param array $replace
+ * @param string $key
+ * @param array $replace
* @return string|Translator
*/
function trans($key = null, $replace = [])
@@ -150,8 +152,8 @@ function trans($key = null, $replace = [])
/**
* Translate the given message
*
- * @param string $key
- * @param array $replace
+ * @param string $key
+ * @param array $replace
* @return string
*/
function __($key, $replace = [])
@@ -165,10 +167,10 @@ function __($key, $replace = [])
/**
* Translate the given message
*
- * @param string $key
- * @param string $keyPlural
- * @param int $number
- * @param array $replace
+ * @param string $key
+ * @param string $keyPlural
+ * @param int $number
+ * @param array $replace
* @return string
*/
function _e($key, $keyPlural, $number, $replace = [])