From 6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Fri, 19 Jul 2013 17:40:07 +0200
Subject: [PATCH] Change to use !== and ===

---
 lib/template.php                     | 10 +++++-----
 lib/template/templatefilelocator.php |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/template.php b/lib/template.php
index 646d9b1123..4b77b7ff77 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 cc5e88771f..d5a484b1a1 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');
 		}
 
-- 
GitLab