Code cleanup before release.

This commit is contained in:
James Cole
2018-03-29 19:01:47 +02:00
parent 40266c6821
commit 170d23d768
76 changed files with 181 additions and 171 deletions

View File

@@ -56,16 +56,6 @@ class AmountFormat extends Twig_Extension
];
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName(): string
{
return 'FireflyIII\Support\Twig\AmountFormat';
}
/**
* @return Twig_SimpleFilter
*/

View File

@@ -67,14 +67,6 @@ class General extends Twig_Extension
];
}
/**
* {@inheritdoc}
*/
public function getName(): string
{
return 'FireflyIII\Support\Twig\General';
}
/**
* Will return "active" when a part of the route matches the argument.
* ie. "accounts" will match "accounts.index".

View File

@@ -102,16 +102,6 @@ class Journal extends Twig_Extension
return $functions;
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName(): string
{
return 'FireflyIII\Support\Twig\Journals';
}
/**
* @return Twig_SimpleFunction
*/

View File

@@ -55,13 +55,4 @@ class PiggyBank extends Twig_Extension
return $functions;
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName(): string
{
return 'FireflyIII\Support\Twig\PiggyBank';
}
}

View File

@@ -103,14 +103,4 @@ class Rule extends Twig_Extension
$this->allActionTriggers(),
];
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName(): string
{
return 'FireflyIII\Support\Twig\Rule';
}
}

View File

@@ -52,14 +52,4 @@ class Transaction extends Twig_Extension
return $filters;
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName(): string
{
return 'transaction';
}
}

View File

@@ -41,7 +41,7 @@ class Translation extends Twig_Extension
$filters[] = new Twig_SimpleFilter(
'_',
function ($name) {
return strval(trans(sprintf('firefly.%s', $name)));
return (string)trans(sprintf('firefly.%s', $name));
},
['is_safe' => ['html']]
);
@@ -59,13 +59,6 @@ class Translation extends Twig_Extension
];
}
/**
* {@inheritdoc}
*/
public function getName(): string
{
return 'FireflyIII\Support\Twig\Translation';
}
/**
* @return Twig_SimpleFunction