From 56db7a0d9e14f7e76078f2d026787c8009c31ee0 Mon Sep 17 00:00:00 2001 From: CodeLingoBot Date: Fri, 5 Apr 2019 20:21:31 +1300 Subject: [PATCH] Change PHP keywords to comply with PSR2 Signed-off-by: CodeLingoBot --- www/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/functions.php b/www/functions.php index b5e4afc..ec16e41 100644 --- a/www/functions.php +++ b/www/functions.php @@ -124,7 +124,7 @@ function walk($array, $key) { if($k == $key) { - return True; + return true; } } return false; @@ -171,7 +171,7 @@ function update_interfaces_file($select) $strdata = file_get_contents ("/boot/cmdline.txt"); $arrdata = explode (" ",$strdata); foreach($arrdata as $key => $value) { - if (strpos($value, 'smsc95xx.macaddr=') !== FALSE) { + if (strpos($value, 'smsc95xx.macaddr=') !== false) { unset($arrdata[$key]); } } @@ -217,7 +217,7 @@ function update_interfaces_file($select) $strdata = file_get_contents ("/boot/cmdline.txt"); $arrdata = explode (" ",$strdata); foreach($arrdata as $key => $value) { - if (strpos($value, 'smsc95xx.macaddr=') !== FALSE) { + if (strpos($value, 'smsc95xx.macaddr=') !== false) { unset($arrdata[$key]); } } @@ -242,7 +242,7 @@ function update_interfaces_file($select) $strdata = file_get_contents ("/boot/cmdline.txt"); $arrdata = explode (" ",$strdata); foreach($arrdata as $key => $value) { - if (strpos($value, 'smsc95xx.macaddr=') !== FALSE) { + if (strpos($value, 'smsc95xx.macaddr=') !== false) { unset($arrdata[$key]); } }