Skip to content

Commit

Permalink
Need to add the code inside these classes
Browse files Browse the repository at this point in the history
  • Loading branch information
summercms committed Jan 19, 2021
1 parent 714131c commit dd8f2da
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Analyser/Header/Bolt.php
@@ -0,0 +1,17 @@
<?php

namespace WhichBrowser\Analyser\Header;

class Bolt
{
public function __construct($header, &$data)
{
$this->data =& $data;

if (!isset($this->data->browser->name) || $this->data->browser->name != 'Baidu Browser') {
$this->data->browser->name = 'Baidu Browser';
$this->data->browser->version = null;
$this->data->browser->stock = false;
}
}
}
17 changes: 17 additions & 0 deletions src/Analyser/Header/Skyfire.php
@@ -0,0 +1,17 @@
<?php

namespace WhichBrowser\Analyser\Header;

class Skyfire
{
public function __construct($header, &$data)
{
$this->data =& $data;

if (!isset($this->data->browser->name) || $this->data->browser->name != 'Baidu Browser') {
$this->data->browser->name = 'Baidu Browser';
$this->data->browser->version = null;
$this->data->browser->stock = false;
}
}
}

0 comments on commit dd8f2da

Please sign in to comment.