@@ -45,7 +45,9 @@ discard block |
||
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | - if(!$array) return new \stdClass(); |
|
48 | + if(!$array) { |
|
49 | + return new \stdClass(); |
|
50 | + } |
|
49 | 51 | |
50 | 52 | $serialized = array(); |
51 | 53 | foreach ($array as $key => $value) { |
@@ -77,7 +79,7 @@ discard block |
||
77 | 79 | } else { |
78 | 80 | return $this->serializeArray($value); |
79 | 81 | } |
80 | - }else{ |
|
82 | + } else{ |
|
81 | 83 | return $value; |
82 | 84 | } |
83 | 85 | } |
@@ -12,8 +12,9 @@ |
||
12 | 12 | } |
13 | 13 | |
14 | 14 | public function setItems(array $items){ |
15 | - foreach($items as $item) |
|
16 | - $this->addItem($item); |
|
15 | + foreach($items as $item) { |
|
16 | + $this->addItem($item); |
|
17 | + } |
|
17 | 18 | return $this; |
18 | 19 | } |
19 | 20 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | if(is_a($component, $class) and ($property==null or ($property!=null and $component->getProperty($property)==$propertyValue))){ |
62 | 62 | if($findFirst){ |
63 | 63 | return $component; |
64 | - }else{ |
|
64 | + } else{ |
|
65 | 65 | $return[] = $component; |
66 | 66 | } |
67 | 67 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | if($foundComponents = static::searchArray($component->properties(),$class,$property,$propertyValue,$findFirst)){ |
70 | 70 | if($findFirst){ |
71 | 71 | return $foundComponents; |
72 | - }else{ |
|
72 | + } else{ |
|
73 | 73 | $return = array_merge($return,$foundComponents); |
74 | 74 | } |
75 | 75 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $foundComponent = null; |
84 | 84 | if($element instanceof SerializableObject){ |
85 | 85 | $foundComponent = static::search($element,$class,$property,$propertyValue,$findFirst); |
86 | - }elseif(is_array($element)){ |
|
86 | + } elseif(is_array($element)){ |
|
87 | 87 | $foundComponent = static::searchArray($element,$class,$property,$propertyValue,$findFirst); |
88 | 88 | } |
89 | 89 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | <link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/gpl/5.1.0/build/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css"> |
6 | 6 | <?if(array_key_exists('debug',$_REQUEST)){?> |
7 | 7 | <script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/5.1.0/build/ext-all-debug.js"></script> |
8 | - <?}else{?> |
|
8 | + <?} else{?> |
|
9 | 9 | <script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/5.1.0/build/ext-all.js"></script> |
10 | 10 | <?}?> |
11 | 11 | <script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/5.1.0/build/packages/ext-theme-neptune/build/ext-theme-neptune.js"></script> |