Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5c3fd2
commit 4cb2e9b
Showing
4 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* EaDesgin | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file LICENSE_AFL.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/afl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@eadesign.ro so we can send you a copy immediately. | ||
* | ||
* @category eadesigndev_pdfgenerator | ||
* @copyright Copyright (c) 2008-2016 EaDesign by Eco Active S.R.L. | ||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
*/ | ||
|
||
namespace Eadesigndev\Mobiledetect\Helper; | ||
|
||
use Detection\MobileDetect; | ||
|
||
/** | ||
* Helper to be used for mobile detect and validations | ||
* | ||
* Class Validations | ||
* @package Eadesigndev\Detect\Helper | ||
*/ | ||
class MobileDetectModifier extends MobileDetect | ||
{ | ||
/** | ||
* MobileDetectModifier constructor. | ||
* @param null $headers | ||
* @param null $userAgent | ||
*/ | ||
public function __construct( | ||
$headers = null, | ||
$userAgent = null | ||
) { | ||
if (!is_array($headers)) { | ||
$headers = []; | ||
} | ||
parent::__construct($headers, $userAgent); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters