Completed
Push — master ( 2322ba...25df9e )
by Kirill
04:32
created
src/AppBundle/Variable/Service.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         if ($this->needSync) {
69 69
             if ($var->needSync) {
70
-                @file_get_contents($this->syncHost . 'set/' . $varName . '?value=' . $value);
70
+                @file_get_contents($this->syncHost.'set/'.$varName.'?value='.$value);
71 71
             }
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/NooliteController.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
 
14 14
     private $channelMap = [
15 15
 
16
-        1 => ['name'=>'noolite.main','source'=>'human'],
17
-        2 => ['name'=>'noolite.kitchen','source'=>'human'],
18
-        3 => ['name'=>'noolite.diningroom','source'=>'human'],
19
-        4 => ['name'=>'noolite.main','source'=>'pi'],
20
-        5 => ['name'=>'noolite.toilet','source'=>'pi'],
21
-        6 => ['name'=>'noolite.diningroom','source'=>'pi'],
22
-        7 => ['name'=>'noolite.kitchen','source'=>'pi'],
16
+        1 => ['name'=>'noolite.main', 'source'=>'human'],
17
+        2 => ['name'=>'noolite.kitchen', 'source'=>'human'],
18
+        3 => ['name'=>'noolite.diningroom', 'source'=>'human'],
19
+        4 => ['name'=>'noolite.main', 'source'=>'pi'],
20
+        5 => ['name'=>'noolite.toilet', 'source'=>'pi'],
21
+        6 => ['name'=>'noolite.diningroom', 'source'=>'pi'],
22
+        7 => ['name'=>'noolite.kitchen', 'source'=>'pi'],
23 23
     ];
24 24
 
25 25
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $changeSet = [];
59 59
 
60 60
 
61
-            if ($request->get('cmd')==4) {
61
+            if ($request->get('cmd') == 4) {
62 62
                 // reverse state, only by human
63 63
 
64 64
                 $oldState = $device->getState();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
                     /** @var Action $action */
72 72
                     foreach ($actions as $action) {
73
-                        if ($action->getArguments()=='{"state":"on"}') {
73
+                        if ($action->getArguments() == '{"state":"on"}') {
74 74
                             $resultAction = $action;
75 75
                             break;
76 76
                         }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     $changeSet = ['state'=>'off'];
81 81
                     /** @var Action $action */
82 82
                     foreach ($actions as $action) {
83
-                        if ($action->getArguments()=='{"state":"off"}') {
83
+                        if ($action->getArguments() == '{"state":"off"}') {
84 84
                             $resultAction = $action;
85 85
                             break;
86 86
                         }
@@ -88,26 +88,26 @@  discard block
 block discarded – undo
88 88
                 }
89 89
             }
90 90
 
91
-            if ($request->get('cmd')==0) {
91
+            if ($request->get('cmd') == 0) {
92 92
                 // turn off, only by pi
93 93
 
94 94
                 $changeSet = ['state'=>'off'];
95 95
                 /** @var Action $action */
96 96
                 foreach ($actions as $action) {
97
-                    if ($action->getArguments()=='{"state":"off"}') {
97
+                    if ($action->getArguments() == '{"state":"off"}') {
98 98
                         $resultAction = $action;
99 99
                         break;
100 100
                     }
101 101
                 }
102 102
             }
103 103
 
104
-            if ($request->get('cmd')==2) {
104
+            if ($request->get('cmd') == 2) {
105 105
                 // turn on, only by pi
106 106
 
107 107
                 $changeSet = ['state'=>'on'];
108 108
                 /** @var Action $action */
109 109
                 foreach ($actions as $action) {
110
-                    if ($action->getArguments()=='{"state":"on"}') {
110
+                    if ($action->getArguments() == '{"state":"on"}') {
111 111
                         $resultAction = $action;
112 112
                         break;
113 113
                     }
Please login to merge, or discard this patch.