@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function __toString() |
| 57 | 57 | { |
| 58 | - return (string)print_r(self::$instance, true); |
|
| 58 | + return (string) print_r(self::$instance, true); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function __toString() |
| 37 | 37 | { |
| 38 | - return (string)$this->filteredString; |
|
| 38 | + return (string) $this->filteredString; |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | if (!isset($this->set->{$imageVariant})) { |
| 45 | 45 | throw new \Exception('Image variant `' . $imageVariant . '` does not exist. Existing variants are ' . implode(', ', |
| 46 | - array_keys((array)$this->set))); |
|
| 46 | + array_keys((array) $this->set))); |
|
| 47 | 47 | } |
| 48 | 48 | return Request::$subfolders . $this->imagePath . '/' . $this->set->{$imageVariant}; |
| 49 | 49 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function __construct($template = '', Request $request, $parameters = array(), $matchedSitemapItem) |
| 26 | 26 | { |
| 27 | - $this->parameters = (array)$matchedSitemapItem->parameters; |
|
| 27 | + $this->parameters = (array) $matchedSitemapItem->parameters; |
|
| 28 | 28 | $selfParameters = $this->getParametersForNameSpace('self'); |
| 29 | 29 | $this->parameters = array_merge($this->parameters, $selfParameters); |
| 30 | 30 | parent::__construct($template, $request, $this->parameters, $matchedSitemapItem); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function __construct($template, Request $request, $parameters, $matchedSitemapItem) |
| 41 | 41 | { |
| 42 | - $this->parameters = (array)$parameters; |
|
| 42 | + $this->parameters = (array) $parameters; |
|
| 43 | 43 | $this->checkParameters(); |
| 44 | 44 | |
| 45 | 45 | $lang = substr(isset($_SERVER[self::HTTP_ACCEPT_LANGUAGE]) ? $_SERVER[self::HTTP_ACCEPT_LANGUAGE] : self::$DEFAULT_LANGUAGE, |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | unset($this->parameters[self::PARAMETER_LANGUAGE_PARAMETER_NAME]); |
| 79 | 79 | } |
| 80 | 80 | if (isset($this->parameters[self::PARAMETER_FORCE_REDIRECT])) { |
| 81 | - $this->forceRedirect = (bool)$this->parameters[self::PARAMETER_FORCE_REDIRECT]; |
|
| 81 | + $this->forceRedirect = (bool) $this->parameters[self::PARAMETER_FORCE_REDIRECT]; |
|
| 82 | 82 | unset($this->parameters[self::PARAMETER_FORCE_REDIRECT]); |
| 83 | 83 | } |
| 84 | 84 | } |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | $cacheExists = $this->cache !== false; |
| 99 | 99 | $cacheExpired = false; |
| 100 | 100 | if ($cacheExists) { |
| 101 | - $cacheCreationStamp = (int)$this->cache->creationStamp; |
|
| 101 | + $cacheCreationStamp = (int) $this->cache->creationStamp; |
|
| 102 | 102 | $currentTime = time(); |
| 103 | 103 | $cacheAge = $currentTime - $cacheCreationStamp; |
| 104 | 104 | $maxAgeInterval = new \DateInterval($this->maxAge); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | if (preg_match('/\.(?:js|ico|txt|gif|jpg|jpeg|png|bmp|css|html|htm|php|pdf|exe|eot|svg|ttf|woff|ogg|mp3|xml|map|scss)$/', |
| 48 | 48 | $_SERVER['REQUEST_URI'])) { |
| 49 | 49 | if (file_exists($dir . $_SERVER["REQUEST_URI"])) { |
| 50 | - return true; // serve the requested resource as-is. |
|
| 50 | + return true; // serve the requested resource as-is. |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | ?> |
| 7 | 7 | <div class="rte"> |
| 8 | 8 | <div id="summernote_<?= str_replace(']', '-', str_replace('[', '-', |
| 9 | - $fieldPrefix)) . $field->slug ?>_rte_<?= $summernoteInstances ?>" class="summernote"><?= isset($value) ? $value : '' ?></div> |
|
| 9 | + $fieldPrefix)) . $field->slug ?>_rte_<?= $summernoteInstances ?>" class="summernote"><?= isset($value) ? $value : '' ?></div> |
|
| 10 | 10 | </div> |
| 11 | 11 | <textarea style="display:none;" id="summernote_<?= $field->slug ?>_container_<?= $summernoteInstances ?>" name="<?= $fieldPrefix ?>[<?= $field->slug ?>][]"></textarea> |
| 12 | 12 | <script> |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { ?> |
| 11 | 11 | <?php if ($condition) : ?> |
| 12 | 12 | <a class="btn <?= $class ?>" title="<?= $title ?>" href="<?= $href ?>"<?php if ($onclick !== false) : ?> onclick="<?= /** @scrutinizer ignore-type */ |
| 13 | - $onclick ?>"<?php endif ?>> |
|
| 13 | + $onclick ?>"<?php endif ?>> |
|
| 14 | 14 | <i class="fa fa-<?= $icon ?>"></i> |
| 15 | 15 | </a> |
| 16 | 16 | <?php endif |