GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

FlashMessenger   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 30
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderAll() 0 9 2
1
<?php
2
3
/**
4
 * FlashMessenger view helper styled for Bootstrap 3.
5
 *
6
 * @author     Leandro Silva <[email protected]>
7
 *
8
 * @category   LosUi
9
 *
10
 * @license    https://github.com/Lansoweb/LosUi/blob/master/LICENSE MIT License
11
 *
12
 * @link       http://github.com/LansoWeb/LosUi
13
 */
14
namespace LosUi\View\Helper;
15
16
use Zend\Mvc\Controller\Plugin\FlashMessenger as PluginFlashMessenger;
17
use Zend\View\Helper\FlashMessenger as ZfFlashMessenger;
18
19
/**
20
 * FlashMessenger view helper styled for Bootstrap 3.
21
 *
22
 * @author     Leandro Silva <[email protected]>
23
 *
24
 * @category   LosUi
25
 *
26
 * @license    https://github.com/Lansoweb/LosUi/blob/master/LICENSE MIT License
27
 *
28
 * @link       http://github.com/LansoWeb/LosUi
29
 */
30
class FlashMessenger extends ZfFlashMessenger
0 ignored issues
show
Deprecated Code introduced by
The class Zend\View\Helper\FlashMessenger has been deprecated with message: This helper will be removed in version 3.0 of this component. At that time, it will be available in zendframework/zend-mvc-plugin-flashmessenger.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
31
{
32
    protected $classMessages = [
33
        PluginFlashMessenger::NAMESPACE_INFO => 'alert alert-dismissable alert-info',
34
        PluginFlashMessenger::NAMESPACE_ERROR => 'alert alert-dismissable alert-danger',
35
        PluginFlashMessenger::NAMESPACE_SUCCESS => 'alert alert-dismissable alert-success',
36
        PluginFlashMessenger::NAMESPACE_DEFAULT => 'alert alert-dismissable alert-default',
37
        PluginFlashMessenger::NAMESPACE_WARNING => 'alert alert-dismissable alert-warning',
38
    ];
39
40
    protected $messageCloseString = '</li></ul></div>';
41
42
    protected $messageOpenFormat = '<div%s>
43
     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
44
         &times;
45
     </button>
46
     <ul><li>';
47
48
    protected $messageSeparatorString = '</li><li>';
49
50
    public function renderAll($order = ['error', 'success', 'info', 'warning', 'default'])
51
    {
52
        $html = '';
53
        foreach ($order as $namespace) {
54
            $html .= $this->renderCurrent($namespace);
55
        }
56
57
        return $html;
58
    }
59
}
60