Completed
Push — master ( 5a3c79...a7a86a )
by Vadim
41:20
created
Category
src/Clients/ClientHttpful.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         );
113 113
 
114 114
         if ($token !== null) {
115
-            $headers['Authorization'] = 'Token ' . $token;
115
+            $headers['Authorization'] = 'Token '.$token;
116 116
         }
117 117
 
118 118
         $this->request->addHeaders($headers);
Please login to merge, or discard this patch.
src/Transports/DefaultTransport.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function loadVideoPersonById($id, array $query)
57 57
     {
58
-        return $this->call('GET', 'api/video/person/' . $id . '/', array(), $query);
58
+        return $this->call('GET', 'api/video/person/'.$id.'/', array(), $query);
59 59
     }
60 60
 
61 61
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function loadVideoTags($id, array $query)
78 78
     {
79
-        return $this->call('GET', 'api/tags/video/' . $id . '/', array(), $query);
79
+        return $this->call('GET', 'api/tags/video/'.$id.'/', array(), $query);
80 80
     }
81 81
 
82 82
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function loadMetainfoTvContentTypes($id)
98 98
     {
99
-        return $this->call('GET', 'api/metainfo/tv/' . $id . '/contenttvstype/');
99
+        return $this->call('GET', 'api/metainfo/tv/'.$id.'/contenttvstype/');
100 100
     }
101 101
 
102 102
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function loadMetainfoTvSeasons($id)
109 109
     {
110
-        return $this->call('GET', 'api/metainfo/tv/' . $id . '/season/');
110
+        return $this->call('GET', 'api/metainfo/tv/'.$id.'/season/');
111 111
     }
112 112
 
113 113
     /**
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function loadMetainfoTvVideos($id, array $query)
120 120
     {
121
-        return $this->call('GET', 'api/metainfo/tv/' . $id . '/video/', array(), $query);
121
+        return $this->call('GET', 'api/metainfo/tv/'.$id.'/video/', array(), $query);
122 122
     }
123 123
 
124 124
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function loadMetainfoTvLastEpisode($id, $query)
131 131
     {
132
-        return $this->call('GET', 'api/metainfo/tv/' . $id . '/last_episode/', array(), $query);
132
+        return $this->call('GET', 'api/metainfo/tv/'.$id.'/last_episode/', array(), $query);
133 133
     }
134 134
 
135 135
     /**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function loadMetainfoContenttvs($id)
141 141
     {
142
-        return $this->call('GET', 'api/metainfo/contenttvs/' . $id . '/');
142
+        return $this->call('GET', 'api/metainfo/contenttvs/'.$id.'/');
143 143
     }
144 144
 
145 145
     /**
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function getVideoPlayOptions($id, array $query)
152 152
     {
153
-        return $this->call('GET', 'api/play/options/' . $id . '/', array(), $query);
153
+        return $this->call('GET', 'api/play/options/'.$id.'/', array(), $query);
154 154
     }
155 155
 
156 156
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function deleteVideo($id)
172 172
     {
173
-        return $this->call('DELETE', 'api/video/' . $id, array(), array(), array(), true) == 204;
173
+        return $this->call('DELETE', 'api/video/'.$id, array(), array(), array(), true) == 204;
174 174
     }
175 175
 
176 176
     /**
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     public function putVideo($id, $params)
183 183
     {
184
-        return $this->call('PUT', 'api/video/' . $id . '/', $params);
184
+        return $this->call('PUT', 'api/video/'.$id.'/', $params);
185 185
     }
186 186
 
187 187
     /**
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function getVideo($id)
193 193
     {
194
-        return $this->call('GET', 'api/video/' . $id . '/');
194
+        return $this->call('GET', 'api/video/'.$id.'/');
195 195
     }
196 196
 
197 197
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function patchVideo($id, $params)
204 204
     {
205
-        return $this->call('PATCH', 'api/video/' . $id, $params);
205
+        return $this->call('PATCH', 'api/video/'.$id, $params);
206 206
     }
207 207
 
208 208
     /**
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      */
214 214
     public function addThumb($id, array $file)
215 215
     {
216
-        return $this->call('POST', 'api/video/' . $id . '/thumbnail/', array(), array(), $file);
216
+        return $this->call('POST', 'api/video/'.$id.'/thumbnail/', array(), array(), $file);
217 217
     }
218 218
 
219 219
     /**
Please login to merge, or discard this patch.
src/Transports/Transport.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $trs = $this->transports;
63 63
 
64 64
         if (!isset($trs[$transport]) || !class_exists($trs[$transport])) {
65
-            throw new Exception("Unknown " . $transport . " transport");
65
+            throw new Exception("Unknown ".$transport." transport");
66 66
         }
67 67
 
68 68
         $this->client = new $trs[$transport]();
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $protocol .= 's';
88 88
         }
89 89
 
90
-        return $protocol . "://";
90
+        return $protocol."://";
91 91
     }
92 92
 
93 93
     /**
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function getUrl($url, $query = array())
99 99
     {
100
-        $url = $this->getProtocol() . $this->rutube . '/' . $url;
100
+        $url = $this->getProtocol().$this->rutube.'/'.$url;
101 101
 
102 102
         if (!empty($query)) {
103
-            $url .= '?' . http_build_query($query);
103
+            $url .= '?'.http_build_query($query);
104 104
         }
105 105
 
106 106
         return $url;
Please login to merge, or discard this patch.
autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
  * @param string $class The fully-qualified class name.
26 26
  * @return void
27 27
  */
28
-spl_autoload_register(function ($class)
28
+spl_autoload_register(function($class)
29 29
 {
30 30
     // project-specific namespace prefix
31 31
     $prefix = 'Rutube\\';
32 32
 
33 33
     // base directory for the namespace prefix
34
-    $base_dir = defined('RUTUBE_CLIENT_SRC_DIR') ? RUTUBE_CLIENT_SRC_DIR : __DIR__ . '/src/';
34
+    $base_dir = defined('RUTUBE_CLIENT_SRC_DIR') ? RUTUBE_CLIENT_SRC_DIR : __DIR__.'/src/';
35 35
 
36 36
     // does the class use the namespace prefix?
37 37
     $len = strlen($prefix);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     // replace the namespace prefix with the base directory, replace namespace
47 47
     // separators with directory separators in the relative class name, append
48 48
     // with .php
49
-    $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
49
+    $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
50 50
 
51 51
     // if the file exists, require it
52 52
     if (file_exists($file)) {
Please login to merge, or discard this patch.