Fancify   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A onCreatePost() 0 5 1
1
<?php
2
3
use Noair\Event;
4
5
/**
6
 * An example Noair Observer
7
 *
8
 * This is an example Observer/plugin, which will modify
9
 * previously called listeners. This example Observer enhances
10
 * the display of posts
11
 *
12
 * @author      Garrett Whitehorn
13
 * @author      David Tkachuk
14
 * @package     Noair
15
 * @subpackage  NoairExample
16
 * @version     1.0
17
 */
18
class Fancify extends Noair\Observer
19
{
20
    public function onCreatePost(Event $event) {
21
        return str_replace('border:1px solid #EEE;',
22
            'border:1px solid #DADADA;background:#F1F1F1;font-family:Arial;font-size:15px;',
23
            $event->previousResult);
24
    }
25
}
26