Completed
Push — master ( 6b84f3...694bac )
by Vadim
01:55
created
src/Serializer/ArraySerializer.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
77 79
             } else {
78 80
                 return $this->serializeArray($value);
79 81
             }
80
-        }else{
82
+        } else{
81 83
             return $value;
82 84
         }
83 85
     }
Please login to merge, or discard this patch.
src/Container/Container.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SerializableObject.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
sandbox/template.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.