Applied fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
ec61ab6c7a
commit
00d9c1b82a
@@ -454,7 +454,6 @@ class UserController extends Controller
|
||||
->delete();
|
||||
|
||||
return redirect('user')->with('success', Lang::get('lang.user_delete_successfully'));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -180,11 +180,11 @@ class PhpMailController extends Controller
|
||||
$protocol = $from_address->sending_protocol;
|
||||
$this->setServices($from_address->id, $protocol);
|
||||
if ($protocol == 'mail') {
|
||||
$username = "";
|
||||
$fromname="";
|
||||
$host="";
|
||||
$smtpsecure ="";
|
||||
$port="";
|
||||
$username = '';
|
||||
$fromname = '';
|
||||
$host = '';
|
||||
$smtpsecure = '';
|
||||
$port = '';
|
||||
}
|
||||
$configs = [
|
||||
'username' => $username,
|
||||
|
@@ -156,18 +156,21 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||
|
||||
return $this->user_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category function to check profile pic source srting ends with profilepic or not
|
||||
*
|
||||
* @param string $haystack, $needle
|
||||
* @return boolean true/false
|
||||
*
|
||||
* @return bool true/false
|
||||
*/
|
||||
function endsWith($haystack, $needle)
|
||||
public function endsWith($haystack, $needle)
|
||||
{
|
||||
$length = strlen($needle);
|
||||
if ($length == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (substr($haystack, -$length) === $needle);
|
||||
return substr($haystack, -$length) === $needle;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user