Completed
Pull Request — 1.11.x (#1688)
by José
28:44
created
src/Chamilo/CourseBundle/Component/CourseCopy/Course.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
                     if ($resource->links_to($resource_to_check)) {
44 44
                         return true;
45 45
                     }
46
-                    if ($type == RESOURCE_LEARNPATH && get_class($resource)=='CourseCopyLearnpath') {
46
+                    if ($type == RESOURCE_LEARNPATH && get_class($resource) == 'CourseCopyLearnpath') {
47 47
                         if ($resource->has_item($resource_to_check)) {
48 48
                             return true;
49 49
                         }
Please login to merge, or discard this patch.
main/calendar/agenda_list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
 if (!empty($currentCourseId) && $currentCourseId != -1) {
30 30
     // Agenda is inside a course tool
31
-    $url = api_get_self() . '?' . api_get_cidreq();
31
+    $url = api_get_self().'?'.api_get_cidreq();
32 32
     $this_section = SECTION_COURSES;
33 33
 
34 34
     // Order by start date
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     if (!empty($events)) {
52 52
         foreach ($events as &$event) {
53 53
             $courseId = isset($event['course_id']) ? $event['course_id'] : '';
54
-            $event['url'] = api_get_self() . '?cid=' . $courseId . '&type=' . $event['type'];
54
+            $event['url'] = api_get_self().'?cid='.$courseId.'&type='.$event['type'];
55 55
         }
56 56
     }
57 57
 }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         } else {
78 78
             $courseCondition = '&'.api_get_cidreq();
79 79
         }
80
-        header('Location: '. api_get_self().'?type='.$agenda->type.$courseCondition);
80
+        header('Location: '.api_get_self().'?type='.$agenda->type.$courseCondition);
81 81
         exit;
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Proxy/HTTP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @see fsockopen_header
83 83
 	 * @param Requests_Hooks $hooks Hook system
84 84
 	 */
85
-	public function register(Requests_Hooks &$hooks) {
85
+	public function register(Requests_Hooks & $hooks) {
86 86
 		$hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
87 87
 
88 88
 		$hooks->register('fsockopen.remote_socket', array(&$this, 'fsockopen_remote_socket'));
@@ -146,6 +146,6 @@  discard block
 block discarded – undo
146 146
 	 * @return string
147 147
 	 */
148 148
 	public function get_auth_string() {
149
-		return $this->user . ':' . $this->pass;
149
+		return $this->user.':'.$this->pass;
150 150
 	}
151 151
 }
152 152
\ No newline at end of file
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/IDNAEncoder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 		$string = self::punycode_encode($string);
94 94
 
95 95
 		// Step 7: Prepend ACE prefix
96
-		$string = self::ACE_PREFIX . $string;
96
+		$string = self::ACE_PREFIX.$string;
97 97
 
98 98
 		// Step 8: Check size
99 99
 		if (strlen($string) < 64) {
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
 	 * @see Requests_Hooks::register
30 30
 	 * @param Requests_Hooks $hooks Hook system
31 31
 	 */
32
-	public function register(Requests_Hooks &$hooks);
32
+	public function register(Requests_Hooks & $hooks);
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Auth/Basic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 * @see fsockopen_header
54 54
 	 * @param Requests_Hooks $hooks Hook system
55 55
 	 */
56
-	public function register(Requests_Hooks &$hooks) {
56
+	public function register(Requests_Hooks & $hooks) {
57 57
 		$hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
58 58
 		$hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
59 59
 	}
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
 	 * @return string
84 84
 	 */
85 85
 	public function getAuthString() {
86
-		return $this->user . ':' . $this->pass;
86
+		return $this->user.':'.$this->pass;
87 87
 	}
88 88
 }
89 89
\ No newline at end of file
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Cookie/Jar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	 *
163 163
 	 * @var Requests_Response $response
164 164
 	 */
165
-	public function before_redirect_check(Requests_Response &$return) {
165
+	public function before_redirect_check(Requests_Response & $return) {
166 166
 		$url = $return->url;
167 167
 		if (!$url instanceof Requests_IRI) {
168 168
 			$url = new Requests_IRI($url);
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Cookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@
 block discarded – undo
344 344
 				}
345 345
 			}
346 346
 
347
-			$header_value .= '; ' . implode('; ', $parts);
347
+			$header_value .= '; '.implode('; ', $parts);
348 348
 		}
349 349
 		return $header_value;
350 350
 	}
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Transport/cURL.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 		$options['hooks']->dispatch('curl.before_request', array(&$this->handle));
311 311
 
312 312
 		// Force closing the connection for old versions of cURL (<7.22).
313
-		if ( ! isset( $headers['Connection'] ) ) {
313
+		if (!isset($headers['Connection'])) {
314 314
 			$headers['Connection'] = 'close';
315 315
 		}
316 316
 
@@ -505,11 +505,11 @@  discard block
 block discarded – undo
505 505
 				$query = $url_parts['query'];
506 506
 			}
507 507
 
508
-			$query .= '&' . http_build_query($data, null, '&');
508
+			$query .= '&'.http_build_query($data, null, '&');
509 509
 			$query = trim($query, '&');
510 510
 
511 511
 			if (empty($url_parts['query'])) {
512
-				$url .= '?' . $query;
512
+				$url .= '?'.$query;
513 513
 			}
514 514
 			else {
515 515
 				$url = str_replace($url_parts['query'], $query, $url);
Please login to merge, or discard this patch.