@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | //-------------------------------------------------------------------- |
| 25 | 25 | |
| 26 | - public function __construct(LibraryFinderInterface $finder=null, CacheInterface $cache=null) |
|
| 26 | + public function __construct(LibraryFinderInterface $finder = null, CacheInterface $cache = null) |
|
| 27 | 27 | { |
| 28 | 28 | if (is_object($finder)) |
| 29 | 29 | { |
@@ -50,14 +50,14 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @return null|string |
| 52 | 52 | */ |
| 53 | - public function display($library, $params=null, $cache_name=null, $cache_ttl=0) |
|
| 53 | + public function display($library, $params = null, $cache_name = null, $cache_ttl = 0) |
|
| 54 | 54 | { |
| 55 | 55 | list($class, $method) = $this->determineClass($library); |
| 56 | 56 | |
| 57 | 57 | // Is it cached? |
| 58 | - $cache_name = ! empty($cache_name) ? $cache_name : $class . $method . md5(serialize($params)); |
|
| 58 | + $cache_name = !empty($cache_name) ? $cache_name : $class.$method.md5(serialize($params)); |
|
| 59 | 59 | |
| 60 | - if (! empty($this->cache) && $output = $this->cache->get($cache_name)) |
|
| 60 | + if (!empty($this->cache) && $output = $this->cache->get($cache_name)) |
|
| 61 | 61 | { |
| 62 | 62 | return $output; |
| 63 | 63 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | if ($this->isStaticMethod($instance, $method)) |
| 74 | 74 | { |
| 75 | - $output = $instance::{$method}( $this->prepareParams($params) ); |
|
| 75 | + $output = $instance::{$method}($this->prepareParams($params)); |
|
| 76 | 76 | } |
| 77 | 77 | else |
| 78 | 78 | { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | // Can we cache it? |
| 83 | - if (! empty($this->cache) && $cache_ttl !== 0) |
|
| 83 | + if (!empty($this->cache) && $cache_ttl !== 0) |
|
| 84 | 84 | { |
| 85 | 85 | $this->cache->set($cache_name, $output, $cache_ttl); |
| 86 | 86 | } |