| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 | public static function editDocumentLink($path) | 
| 40 | 40 |      { | 
| 41 | 41 |          if (self::isLoggedIn()) { | 
| 42 | - $path = substr($path,0,1) === '/' ? substr($path, 1) : $path; | |
| 42 | + $path = substr($path, 0, 1) === '/' ? substr($path, 1) : $path; | |
| 43 | 43 | return Request::$subfolders . 'cms/documents/edit-document?slug=' . urlencode($path); | 
| 44 | 44 |          } else { | 
| 45 | 45 | return ''; | 
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | public static function newDocumentLink($path = '/', $documentType = '') | 
| 75 | 75 |      { | 
| 76 | 76 |          if (self::isLoggedIn()) { | 
| 77 | - $path = substr($path,0,1) === '/' ? $path : '/' . $path; | |
| 77 | + $path = substr($path, 0, 1) === '/' ? $path : '/' . $path; | |
| 78 | 78 | $linkPostFix = ''; | 
| 79 | 79 |              if ($documentType !== '') { | 
| 80 | 80 | $linkPostFix = '&documentType=' . $documentType; |