Passed
Branch master (c4d007)
by Aaron
02:58
created
src/Recording.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
     public function getRecorder($recorderName)
100 100
     {
101
-    	$this->restURI = $this->restURI . "/" . $recorderName;
101
+        $this->restURI = $this->restURI . "/" . $recorderName;
102 102
         $this->setNoParams();
103 103
 
104 104
         return $this->sendRequest($this->preparePropertiesForRequest(self::class), [], self::VERB_GET);
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
 
107 107
     public function getDefaultParams($recorderName)
108 108
     {
109
-    	$this->restURI = $this->restURI . "/" . $recorderName . "/default";
109
+        $this->restURI = $this->restURI . "/" . $recorderName . "/default";
110 110
         $this->setNoParams();
111 111
 
112 112
         return $this->sendRequest($this->preparePropertiesForRequest(self::class), [], self::VERB_GET);
113 113
     }
114 114
 
115
-	public function stop($recorderName)
115
+    public function stop($recorderName)
116 116
     {
117 117
         $this->restURI = $this->restURI . "/" . $recorderName . "/actions/stopRecording";
118 118
         $this->setNoParams();
Please login to merge, or discard this patch.
src/Application.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -100,19 +100,19 @@
 block discarded – undo
100 100
     }
101 101
 
102 102
     public function updateAdvanced(
103
-		Entities\Application\AdvancedSettings $advancedSettings = null,
104
-		Entities\Application\Modules $modules = null
105
-	) {
106
-		$this->restURI = $this->getHost() . "/servers/" . $this->getServerInstance() . "/vhosts/" . $this->getVHostInstance() . "/applications/{$this->name}";
107
-
108
-		$entities = $this->getEntites(null, $this->restURI);
109
-		$props = new \stdClass();
110
-		$props->advancedSettings = $advancedSettings->advancedSettings;
111
-		$props->modules = $modules->moduleList;
112
-		$props->restURI = $this->restURI . "/adv";
113
-
114
-		return $this->sendRequest($props, $entities, self::VERB_PUT);
115
-	}
103
+        Entities\Application\AdvancedSettings $advancedSettings = null,
104
+        Entities\Application\Modules $modules = null
105
+    ) {
106
+        $this->restURI = $this->getHost() . "/servers/" . $this->getServerInstance() . "/vhosts/" . $this->getVHostInstance() . "/applications/{$this->name}";
107
+
108
+        $entities = $this->getEntites(null, $this->restURI);
109
+        $props = new \stdClass();
110
+        $props->advancedSettings = $advancedSettings->advancedSettings;
111
+        $props->modules = $modules->moduleList;
112
+        $props->restURI = $this->restURI . "/adv";
113
+
114
+        return $this->sendRequest($props, $entities, self::VERB_PUT);
115
+    }
116 116
 
117 117
     public function remove()
118 118
     {
Please login to merge, or discard this patch.
src/StreamFile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * Reset stream
153 153
      */
154
-    public function reset(){
154
+    public function reset() {
155 155
         /*
156 156
          * curl -X PUT --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8'
157 157
          * "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/[YOUR-APP-NAME]/instances/_definst_/incomingstreams/[STREAM-FILE-NAME]/actions/resetStream"
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
          * "http:\/\/127.0.0.1:8087\/v2\/servers\/_defaultServer_\/vhosts\/_defaultVHost_\/applications\/live\/instances\/_definst_\/incomingstreams\/bolton_mass\/actions\/resetStream"
161 161
          */
162 162
         $this->addSkipParameter('name', 1);
163
-        $this->restURI = $this->getHost()."/servers/".$this->getServerInstance()."/vhosts/".$this->getVHostInstance()."/applications/".$this->_applicationName."/instances/";
164
-        $this->restURI .= $this->_applicationInstance."/incomingstreams/".$this->name.".stream/actions/resetStream";
163
+        $this->restURI = $this->getHost() . "/servers/" . $this->getServerInstance() . "/vhosts/" . $this->getVHostInstance() . "/applications/" . $this->_applicationName . "/instances/";
164
+        $this->restURI .= $this->_applicationInstance . "/incomingstreams/" . $this->name . ".stream/actions/resetStream";
165 165
 
166 166
         return $this->sendRequest($this->preparePropertiesForRequest(self::class), [], self::VERB_PUT);
167 167
     }
Please login to merge, or discard this patch.