diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-19 17:40:07 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-21 21:42:42 +0200 |
commit | 6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94 (patch) | |
tree | e9ae25e66a1cf2353b293043649f30f74b43de2c | |
parent | 01c39cf2bea11d6ebfb7c5abf60d5c6878dc3ad0 (diff) | |
download | nextcloud-server-6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94.tar.gz nextcloud-server-6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94.zip |
Change to use !== and ===
-rw-r--r-- | lib/template.php | 10 | ||||
-rw-r--r-- | lib/template/templatefilelocator.php | 2 |
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'); } |