aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/template.php10
-rw-r--r--lib/template/templatefilelocator.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/template.php b/lib/template.php
index 646d9b11235..4b77b7ff779 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -135,13 +135,13 @@ class OC_Template extends \OC\Template\Base {
\OC::$session->set('formfactor', $_GET['formfactor']);
}
$formfactor = \OC::$session->get('formfactor');
- if($formfactor=='default') {
+ if($formfactor==='default') {
$fext='';
- }elseif($formfactor=='mobile') {
+ }elseif($formfactor==='mobile') {
$fext='.mobile';
- }elseif($formfactor=='tablet') {
+ }elseif($formfactor==='tablet') {
$fext='.tablet';
- }elseif($formfactor=='standalone') {
+ }elseif($formfactor==='standalone') {
$fext='.standalone';
}else{
$fext='';
@@ -158,7 +158,7 @@ class OC_Template extends \OC\Template\Base {
*/
protected function findTemplate($theme, $app, $name, $fext) {
// Check if it is a app template or not.
- if( $app != '' ) {
+ if( $app !== '' ) {
$dirs = $this->getAppTemplateDirs($theme, $app, OC::$SERVERROOT, OC_App::getAppPath($app));
} else {
$dirs = $this->getCoreTemplateDirs($theme, OC::$SERVERROOT);
diff --git a/lib/template/templatefilelocator.php b/lib/template/templatefilelocator.php
index cc5e88771ff..d5a484b1a14 100644
--- a/lib/template/templatefilelocator.php
+++ b/lib/template/templatefilelocator.php
@@ -19,7 +19,7 @@ class TemplateFileLocator {
}
public function find( $template ) {
- if ($template == '') {
+ if ($template === '') {
throw new \InvalidArgumentException('Empty template name');
}