| @@ -45,7 +45,7 @@ | ||
| 45 | 45 |          { | 
| 46 | 46 | $this->template = $template; | 
| 47 | 47 | $this->request = $request; | 
| 48 | - $this->parameters = (array)$parameters; | |
| 48 | + $this->parameters = (array) $parameters; | |
| 49 | 49 | $this->matchedSitemapItem = $matchedSitemapItem; | 
| 50 | 50 | } | 
| 51 | 51 | |
| @@ -163,7 +163,7 @@ | ||
| 163 | 163 |          if (isset($_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID])) { | 
| 164 | 164 | $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID]; | 
| 165 | 165 |          } else { | 
| 166 | - $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] = (string)microtime(true); | |
| 166 | + $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] = (string) microtime(true); | |
| 167 | 167 | $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName]['submitted'] = false; | 
| 168 | 168 | $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID]; | 
| 169 | 169 | } | 
| @@ -26,7 +26,7 @@ discard block | ||
| 26 | 26 | */ | 
| 27 | 27 | public function __construct($template, Request $request, $parameters, $matchedSitemapItem) | 
| 28 | 28 |      { | 
| 29 | - $this->parameters = (array)$parameters; | |
| 29 | + $this->parameters = (array) $parameters; | |
| 30 | 30 | $this->checkParameters(); | 
| 31 | 31 | |
| 32 | 32 | $lang = substr(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : $this->defaultLanguage, 0, 2); | 
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | unset($this->parameters['languageParameterName']); | 
| 64 | 64 | } | 
| 65 | 65 |          if (isset($this->parameters['forceRedirect'])) { | 
| 66 | - $this->forceRedirect = (bool)$this->parameters['forceRedirect']; | |
| 66 | + $this->forceRedirect = (bool) $this->parameters['forceRedirect']; | |
| 67 | 67 | unset($this->parameters['forceRedirect']); | 
| 68 | 68 | } | 
| 69 | 69 | } | 
| @@ -51,7 +51,7 @@ | ||
| 51 | 51 | */ | 
| 52 | 52 | public function SetPreserveAspectRatio($bool) | 
| 53 | 53 |          { | 
| 54 | - $this->_preserveAspectRatio = (bool)$bool; | |
| 54 | + $this->_preserveAspectRatio = (bool) $bool; | |
| 55 | 55 | return $this; | 
| 56 | 56 | } | 
| 57 | 57 | |
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | public static function slugify($str, $replace = array(), $delimiter = '-') | 
| 21 | 21 |      { | 
| 22 | 22 |          if (!empty($replace)) { | 
| 23 | - $str = str_replace((array)$replace, ' ', $str); | |
| 23 | + $str = str_replace((array) $replace, ' ', $str); | |
| 24 | 24 | } | 
| 25 | 25 | |
| 26 | 26 |          $clean = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str); | 
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | } | 
| 35 | 35 | $object_vars = get_object_vars($valuelistObject->pairs); | 
| 36 | 36 | ksort($object_vars); | 
| 37 | - $valuelistObject->pairs = (object)$object_vars; | |
| 37 | + $valuelistObject->pairs = (object) $object_vars; | |
| 38 | 38 | |
| 39 | 39 | return $valuelistObject; | 
| 40 | 40 |          } else { | 
| @@ -151,7 +151,7 @@ | ||
| 151 | 151 | public function save() | 
| 152 | 152 |      { | 
| 153 | 153 | $host = $this; | 
| 154 | -        array_map(function ($value) use ($host) { | |
| 154 | +        array_map(function($value) use ($host) { | |
| 155 | 155 | $host->saveSubset($value); | 
| 156 | 156 | }, $this->fileBasedSubsets); | 
| 157 | 157 | } | 
| @@ -55,9 +55,9 @@ discard block | ||
| 55 | 55 |  { | 
| 56 | 56 |      if (!isset($_GET['unsanitized'])) { | 
| 57 | 57 | $search = array( | 
| 58 | - '/\>[^\S ]+/s', // strip whitespaces after tags, except space | |
| 59 | - '/[^\S ]+\</s', // strip whitespaces before tags, except space | |
| 60 | - '/(\s)+/s', // shorten multiple whitespace sequences | |
| 58 | + '/\>[^\S ]+/s', // strip whitespaces after tags, except space | |
| 59 | + '/[^\S ]+\</s', // strip whitespaces before tags, except space | |
| 60 | + '/(\s)+/s', // shorten multiple whitespace sequences | |
| 61 | 61 | '/<!--(.|\s)*?-->/' // Remove HTML comments | 
| 62 | 62 | ); | 
| 63 | 63 | |
| @@ -85,7 +85,7 @@ discard block | ||
| 85 | 85 | */ | 
| 86 | 86 | function utf8Convert($array) | 
| 87 | 87 |  { | 
| 88 | -    array_walk_recursive($array, function (&$item) { | |
| 88 | +    array_walk_recursive($array, function(&$item) { | |
| 89 | 89 |          if (!mb_detect_encoding($item, 'utf-8', true)) { | 
| 90 | 90 | $item = utf8_encode($item); | 
| 91 | 91 | } | 
| @@ -31,29 +31,29 @@ | ||
| 31 | 31 | </div> | 
| 32 | 32 | <div class="documentActions grid-box-2"> | 
| 33 | 33 | <? renderAction( | 
| 34 | - $document->state == 'unpublished' || $document->unpublishedChanges, | |
| 35 | - 'Publish', | |
| 36 | - 'publish', | |
| 37 | - $request::$subfolders . $cmsPrefix . '/documents/publish-document?slug=' . $slugPrefix . $document->slug, | |
| 38 | - 'check'); ?> | |
| 34 | + $document->state == 'unpublished' || $document->unpublishedChanges, | |
| 35 | + 'Publish', | |
| 36 | + 'publish', | |
| 37 | + $request::$subfolders . $cmsPrefix . '/documents/publish-document?slug=' . $slugPrefix . $document->slug, | |
| 38 | + 'check'); ?> | |
| 39 | 39 | <? renderAction( | 
| 40 | - $document->state == 'published', | |
| 41 | - 'Unpublish', | |
| 42 | - 'unpublish', | |
| 43 | - $request::$subfolders . $cmsPrefix . '/documents/unpublish-document?slug=' . $slugPrefix . $document->slug, | |
| 44 | - 'times'); ?> | |
| 40 | + $document->state == 'published', | |
| 41 | + 'Unpublish', | |
| 42 | + 'unpublish', | |
| 43 | + $request::$subfolders . $cmsPrefix . '/documents/unpublish-document?slug=' . $slugPrefix . $document->slug, | |
| 44 | + 'times'); ?> | |
| 45 | 45 | <? renderAction( | 
| 46 | - true, | |
| 47 | - 'Edit', | |
| 48 | - '', | |
| 49 | - $request::$subfolders . $cmsPrefix . '/documents/edit-document?slug=' . $slugPrefix . $document->slug, | |
| 50 | - 'pencil'); ?> | |
| 46 | + true, | |
| 47 | + 'Edit', | |
| 48 | + '', | |
| 49 | + $request::$subfolders . $cmsPrefix . '/documents/edit-document?slug=' . $slugPrefix . $document->slug, | |
| 50 | + 'pencil'); ?> | |
| 51 | 51 | <? renderAction( | 
| 52 | - $document->state == 'unpublished', | |
| 53 | - 'Delete', | |
| 54 | - 'error', | |
| 55 | - $request::$subfolders . $cmsPrefix . '/documents/delete-document?slug=' . $slugPrefix . $document->slug, | |
| 56 | - 'trash', | |
| 57 | - 'return confirm(\'Are you sure you want to delete this document?\');'); ?> | |
| 52 | + $document->state == 'unpublished', | |
| 53 | + 'Delete', | |
| 54 | + 'error', | |
| 55 | + $request::$subfolders . $cmsPrefix . '/documents/delete-document?slug=' . $slugPrefix . $document->slug, | |
| 56 | + 'trash', | |
| 57 | + 'return confirm(\'Are you sure you want to delete this document?\');'); ?> | |
| 58 | 58 | </div> | 
| 59 | 59 | <? } ?> |