<commit_before>DesignmovesDeviceContext
========================

Zend Framework 2 module for detecting mobile devices. This module uses
[Mobile-Detect](https://github.com/serbanghita/Mobile-Detect) for detecting devices.

## Usage

### Controller plugin

The controller plugin proxies the Mobile Detect class and has some additional methods:
<dl>
  <dt>getDeviceType()</dt>
  <dd>Returns the name of the device (computer/phone/tablet)</dd>
  <dt>isComputer()</dt>
  <dd>Determines whether the device is a computer or not</dd>
  <dt>isPhone()</dt>
  <dd>Determines whether the device is a phone or not</dd>
  <dt>toArray()</dt>
  <dd>Returns an array representation of the detected data:
```php
array (size=6)
  'deviceType' => string 'computer' (length=8)
  'isComputer' => boolean true
  'isMobile' => boolean false
  'isPhone' => boolean false
  'isTablet' => boolean false
  'userAgent' => string 'Mozilla/5.0 (Windows NT 6.0; rv:30.0) Gecko/20100101 Firefox/30.0' (length=65)
```
  </dd>
</dl><commit_msg>Changed markup for code block<commit_after>DesignmovesDeviceContext
========================

Zend Framework 2 module for detecting mobile devices. This module uses
[Mobile-Detect](https://github.com/serbanghita/Mobile-Detect) for detecting devices.

## Usage

### Controller plugin

The controller plugin proxies the Mobile Detect class and has some additional methods:
<dl>
  <dt>getDeviceType()</dt>
  <dd>Returns the name of the device (computer/phone/tablet)</dd>
  <dt>isComputer()</dt>
  <dd>Determines whether the device is a computer or not</dd>
  <dt>isPhone()</dt>
  <dd>Determines whether the device is a phone or not</dd>
  <dt>toArray()</dt>
  <dd>Returns an array representation of the detected data:
<pre><ocde>
array (size=6)
  'deviceType' => string 'computer' (length=8)
  'isComputer' => boolean true
  'isMobile' => boolean false
  'isPhone' => boolean false
  'isTablet' => boolean false
  'userAgent' => string 'Mozilla/5.0 (Windows NT 6.0; rv:30.0) Gecko/20100101 Firefox/30.0' (length=65)
</code></pre>
  </dd>
</dl>
{'fraction_non_alphanumeric': 0.15699658703071673, 'fraction_numerical': 0.02242808386153096, 'mean_word_length': 4.8796561604584525, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 55, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509566', 'n_tokens_mistral': 709, 'n_tokens_neox': 649, 'n_words': 206}