Archived
1
0
Fork 0

Style fixes.

This commit is contained in:
Henrik Hautakoski 2023-04-30 16:52:38 +02:00
parent a7a59b690a
commit 8b44550f06
42 changed files with 186 additions and 148 deletions

View file

@ -14,7 +14,7 @@ abstract class AbstractHelper implements InjectionAwareInterface
*
* @param DiInterface $container
*/
public function setDI(DiInterface $container) : void
public function setDI(DiInterface $container): void
{
$this->_di = $container;
}
@ -24,7 +24,7 @@ abstract class AbstractHelper implements InjectionAwareInterface
*
* @return DiInterface
*/
public function getDI() : DiInterface
public function getDI(): DiInterface
{
return $this->_di;
}

View file

@ -27,7 +27,7 @@ class Icon extends AbstractHelper
if (is_array($args)) {
foreach($args as $arg) {
foreach ($args as $arg) {
$classes[] .= 'fa-' . $arg;
}
}

View file

@ -33,7 +33,8 @@ class ServerUrl extends AbstractHelper
// remove port if it's the default port.
if (($scheme == 'http' && $port == 80)
|| ($scheme == 'https' && $port == 443)) {
|| ($scheme == 'https' && $port == 443)
) {
$port = null;
}

View file

@ -16,7 +16,7 @@ class Service implements InjectionAwareInterface
*
* @param DiInterface $container
*/
public function setDI(DiInterface $container) : void
public function setDI(DiInterface $container): void
{
$this->_di = $container;
}
@ -26,7 +26,7 @@ class Service implements InjectionAwareInterface
*
* @return DiInterface
*/
public function getDI() : DiInterface
public function getDI(): DiInterface
{
return $this->_di;
}