Completed
Push — master ( 0c2538...795030 )
by Ron
02:07
created
src/AttributeRepositories/MySQLAttributeRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
 	 */
62 62
 	public function store($key, $timeout, array $data = array()) {
63 63
 		$key = trim(strtolower($key));
64
-		if(!in_array($key, $this->services)) {
64
+		if (!in_array($key, $this->services)) {
65 65
 			$this->services[] = $key;
66 66
 		} else {
67 67
 			throw new Exception("Duplicate service: {$key}");
68 68
 		}
69 69
 
70
-		if($this->has($key)) {
70
+		if ($this->has($key)) {
71 71
 			$this->updateService->bindValue('key', $key);
72 72
 			$this->updateService->bindValue('timeout', $timeout);
73 73
 			$this->updateService->execute();
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 		$this->selectServices->execute();
110 110
 		$services = $this->selectServices->fetchAll(PDO::FETCH_ASSOC);
111 111
 		$result = array();
112
-		foreach($services as $service) {
112
+		foreach ($services as $service) {
113 113
 			$result[] = $service['service_key'];
114 114
 		}
115 115
 		$this->selectServices->closeCursor();
Please login to merge, or discard this patch.