Completed
Pull Request — 1.11.x (#1339)
by José
73:57 queued 34:43
created
main/cron/lang/list_unused_langvars.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -68,18 +68,18 @@  discard block
 block discarded – undo
68 68
 // defined terms, and this should prove the concept that there are much
69 69
 // more variables than what we really use
70 70
 if (count($usedTerms)<1) {
71
-  die("No used terms<br />\n");
71
+    die("No used terms<br />\n");
72 72
 } else {
73
-  echo "The following terms were defined but never used: <br />\n<table>";
73
+    echo "The following terms were defined but never used: <br />\n<table>";
74 74
 }
75 75
 $i = 1;
76 76
 foreach ($defined_terms as $term => $file) {
77
-  // remove "lang" prefix just in case
78
-  if (substr($term,0,4)=='lang') { $term = substr($term,4); }
79
-  if (!isset($usedTerms[$term])) {
77
+    // remove "lang" prefix just in case
78
+    if (substr($term,0,4)=='lang') { $term = substr($term,4); }
79
+    if (!isset($usedTerms[$term])) {
80 80
     echo "<tr><td>$i</td><td>$term</td></tr>\n";
81 81
     $i++;
82
-  }
82
+    }
83 83
 }
84 84
 echo "</table>\n";
85 85
 
@@ -88,17 +88,17 @@  discard block
 block discarded – undo
88 88
     $list = scandir($base_path);
89 89
     $files = array();
90 90
     foreach ($list as $item) {
91
-    	if (substr($item,0,1)=='.') {continue;}
91
+        if (substr($item,0,1)=='.') {continue;}
92 92
         $special_dirs = array(api_get_path(SYS_TEST_PATH),api_get_path(SYS_COURSE_PATH),api_get_path(SYS_LANG_PATH),api_get_path(SYS_ARCHIVE_PATH));
93 93
         if (in_array($base_path.$item.'/',$special_dirs)) {continue;}
94 94
         if (is_dir($base_path.$item)) {
95
-        	$files = array_merge($files,get_all_php_files($base_path.$item.'/'));
95
+            $files = array_merge($files,get_all_php_files($base_path.$item.'/'));
96 96
         } else {
97 97
             //only analyse php files
98 98
                 $sub = substr($item,-4);
99
-        	if ($sub == '.php' or $sub == '.tpl') {
99
+            if ($sub == '.php' or $sub == '.tpl') {
100 100
                     $files[] = $base_path.$item;
101
-        	}
101
+            }
102 102
         }
103 103
     }
104 104
     $list = null;
Please login to merge, or discard this patch.
plugin/openmeetings/lib/openmeetings_gateway.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -351,9 +351,9 @@
 block discarded – undo
351 351
                 . '&externalRoomType=' . $room->externalRoomType;
352 352
         if ($room->allowRecording) {
353 353
             $url .= '&allowUserQuestions=' . $this->var_to_str($room->allowUserQuestions)
354
-                 . '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly)
355
-                 . '&waitForRecording=' . $this->var_to_str($room->waitForRecording)
356
-                 . '&allowRecording=' . $this->var_to_str($room->allowRecording);
354
+                    . '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly)
355
+                    . '&waitForRecording=' . $this->var_to_str($room->waitForRecording)
356
+                    . '&allowRecording=' . $this->var_to_str($room->allowRecording);
357 357
         } elseif ($room->isAudioOnly) {
358 358
             $url .= '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly);
359 359
         }
Please login to merge, or discard this patch.
src/Chamilo/ThemeBundle/EventListener/ContextListener.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public function getUser()
42 42
     {
43 43
         if (!$this->container->has('security.context')) {
44
-           return false;
44
+            return false;
45 45
         }
46 46
 
47 47
         if (null === $token = $this->container->get('security.context')->getToken()) {
Please login to merge, or discard this patch.
plugin/dashboard/block_teacher/block_teacher.class.php 1 patch
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -24,32 +24,32 @@  discard block
 block discarded – undo
24 24
     private $path;
25 25
     private $permission = array(DRH);
26 26
 
27
-	/**
28
-	 * Controller
29
-	 */
27
+    /**
28
+     * Controller
29
+     */
30 30
     public function __construct ($user_id)
31 31
     {
32
-    	$this->user_id  = $user_id;
33
-    	$this->path 	= 'block_teacher';
34
-    	if ($this->is_block_visible_for_user($user_id)) {
35
-	        $this->teachers = UserManager::get_users_followed_by_drh($user_id, COURSEMANAGER);
36
-    	}
32
+        $this->user_id  = $user_id;
33
+        $this->path 	= 'block_teacher';
34
+        if ($this->is_block_visible_for_user($user_id)) {
35
+            $this->teachers = UserManager::get_users_followed_by_drh($user_id, COURSEMANAGER);
36
+        }
37 37
     }
38 38
 
39 39
     /**
40
-	 * This method check if a user is allowed to see the block inside dashboard interface
41
-	 * @param	int		User id
42
-	 * @return	bool	Is block visible for user
43
-	 */
40
+     * This method check if a user is allowed to see the block inside dashboard interface
41
+     * @param	int		User id
42
+     * @return	bool	Is block visible for user
43
+     */
44 44
     public function is_block_visible_for_user($user_id)
45 45
     {
46
-    	$user_info = api_get_user_info($user_id);
47
-		$user_status = $user_info['status'];
48
-		$is_block_visible_for_user = false;
49
-    	if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) {
50
-    		$is_block_visible_for_user = true;
51
-    	}
52
-    	return $is_block_visible_for_user;
46
+        $user_info = api_get_user_info($user_id);
47
+        $user_status = $user_info['status'];
48
+        $is_block_visible_for_user = false;
49
+        if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) {
50
+            $is_block_visible_for_user = true;
51
+        }
52
+        return $is_block_visible_for_user;
53 53
     }
54 54
 
55 55
     /**
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
     public function get_block()
61 61
     {
62 62
 
63
-    	global $charset;
64
-    	$column = 1;
65
-    	$data = array();
66
-		$teacher_content_html = $this->get_teachers_content_html_for_drh();
63
+        global $charset;
64
+        $column = 1;
65
+        $data = array();
66
+        $teacher_content_html = $this->get_teachers_content_html_for_drh();
67 67
 
68
-		$html = '
68
+        $html = '
69 69
                 <div class="panel panel-default" id="intro">
70 70
                     <div class="panel-heading">
71 71
                         '.get_lang('TeachersInformationsList').'
@@ -79,27 +79,27 @@  discard block
 block discarded – undo
79 79
                 </div>
80 80
 				';
81 81
 
82
-    	$data['column'] = $column;
83
-    	$data['content_html'] = $html;
82
+        $data['column'] = $column;
83
+        $data['content_html'] = $html;
84 84
 
85
-    	return $data;
85
+        return $data;
86 86
 
87 87
     }
88 88
 
89 89
     /**
90
- 	 * This method return a content html, it's used inside get_block method for showing it inside dashboard interface
91
- 	 * @return string  content html
92
- 	 */
90
+     * This method return a content html, it's used inside get_block method for showing it inside dashboard interface
91
+     * @return string  content html
92
+     */
93 93
     public function get_teachers_content_html_for_platform_admin()
94 94
     {
95
-	 	$teachers = $this->teachers;
96
-		//$content = '<div style="margin:10px;">';
97
-		$content = '<h4>'.get_lang('YourTeachers').'</h4>';
95
+            $teachers = $this->teachers;
96
+        //$content = '<div style="margin:10px;">';
97
+        $content = '<h4>'.get_lang('YourTeachers').'</h4>';
98 98
 
99 99
         $teachers_table = null;
100
-		if (count($teachers) > 0) {
101
-	 		$teachers_table .= '<table class="data_table" width:"95%">';
102
-	 		$teachers_table .= '
100
+        if (count($teachers) > 0) {
101
+                $teachers_table .= '<table class="data_table" width:"95%">';
102
+                $teachers_table .= '
103 103
 								<tr>
104 104
 									<th>'.get_lang('User').'</th>
105 105
 									<th>'.get_lang('TimeSpentOnThePlatform').'</th>
@@ -107,103 +107,103 @@  discard block
 block discarded – undo
107 107
 								</tr>
108 108
 							';
109 109
 
110
-	 		$i = 1;
111
-	 		foreach ($teachers as $teacher) {
110
+                $i = 1;
111
+                foreach ($teachers as $teacher) {
112 112
 
113
-	 			$teacher_id = $teacher['user_id'];
114
-	 			$firstname 	= $teacher['firstname'];
115
-	 			$lastname 	= $teacher['lastname'];
116
-	 			$username	= $teacher['username'];
113
+                    $teacher_id = $teacher['user_id'];
114
+                    $firstname 	= $teacher['firstname'];
115
+                    $lastname 	= $teacher['lastname'];
116
+                    $username	= $teacher['username'];
117 117
 
118
-	 			$time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id));
119
-	 			$last_connection = Tracking :: get_last_connection_date($teacher_id);
118
+                    $time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id));
119
+                    $last_connection = Tracking :: get_last_connection_date($teacher_id);
120 120
 
121
-				if ($i%2 == 0) $class_tr = 'row_odd';
122
-			    else $class_tr = 'row_even';
121
+                if ($i%2 == 0) $class_tr = 'row_odd';
122
+                else $class_tr = 'row_even';
123 123
 
124
-				$teachers_table .= '
124
+                $teachers_table .= '
125 125
 									<tr class="'.$class_tr.'">
126 126
 										<td>'.api_get_person_name($firstname,$lastname).' ('.$username.')</td>
127 127
 										<td align="right">'.$time_on_platform.'</td>
128 128
 										<td align="right">'.$last_connection.'</td>
129 129
 									</tr>
130 130
 									';
131
-	 			$i++;
132
-	 		}
133
-	 		$teachers_table .= '</table>';
134
-		} else {
135
-			$teachers_table .= get_lang('ThereIsNoInformationAboutYourTeachers');
136
-		}
131
+                    $i++;
132
+                }
133
+                $teachers_table .= '</table>';
134
+        } else {
135
+            $teachers_table .= get_lang('ThereIsNoInformationAboutYourTeachers');
136
+        }
137 137
 
138
-	 	$content .= $teachers_table;
138
+            $content .= $teachers_table;
139 139
 
140
- 		if (count($teachers) > 0) {
141
-			$content .= '<div style="text-align:right;margin-top:10px;">
140
+            if (count($teachers) > 0) {
141
+            $content .= '<div style="text-align:right;margin-top:10px;">
142 142
 			<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/index.php?view=admin">'.get_lang('SeeMore').'</a></div>';
143
-		}
143
+        }
144 144
 
145
-		//$content .= '</div>';
145
+        //$content .= '</div>';
146 146
 
147
- 		return $content;
148
-	}
147
+            return $content;
148
+    }
149 149
 
150
-	public function get_teachers_content_html_for_drh()
150
+    public function get_teachers_content_html_for_drh()
151 151
     {
152
-  		$teachers = $this->teachers;
153
- 		//$content = '<div style="margin:10px;">';
154
- 		$content = '<h4>'.get_lang('YourTeachers').'</h4>';
152
+            $teachers = $this->teachers;
153
+            //$content = '<div style="margin:10px;">';
154
+            $content = '<h4>'.get_lang('YourTeachers').'</h4>';
155 155
         $teachers_table = null;
156
- 		if (count($teachers) > 0) {
157
- 			$a_last_week = get_last_week();
158
- 			$last_week 	 = date('Y-m-d',$a_last_week[0]).' '.get_lang('To').' '.date('Y-m-d', $a_last_week[6]);
156
+            if (count($teachers) > 0) {
157
+                $a_last_week = get_last_week();
158
+                $last_week 	 = date('Y-m-d',$a_last_week[0]).' '.get_lang('To').' '.date('Y-m-d', $a_last_week[6]);
159 159
 
160
-	 		$teachers_table .= '<table class="data_table" width:"95%">';
161
-	 		$teachers_table .= '
160
+                $teachers_table .= '<table class="data_table" width:"95%">';
161
+                $teachers_table .= '
162 162
 								<tr>
163 163
 									<th>'.get_lang('User').'</th>
164 164
 									<th>'.get_lang('TimeSpentLastWeek').'<br />'.$last_week.'</th>
165 165
 								</tr>
166 166
 							';
167 167
 
168
-	 		$i = 1;
169
-	 		foreach ($teachers as $teacher) {
168
+                $i = 1;
169
+                foreach ($teachers as $teacher) {
170 170
 
171
-	 			$teacher_id = $teacher['user_id'];
172
-	 			$firstname  = $teacher['firstname'];
173
-	 			$lastname   = $teacher['lastname'];
174
-				$username	= $teacher['username'];
175
-	 			$time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id,true));
171
+                    $teacher_id = $teacher['user_id'];
172
+                    $firstname  = $teacher['firstname'];
173
+                    $lastname   = $teacher['lastname'];
174
+                $username	= $teacher['username'];
175
+                    $time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id,true));
176 176
 
177
-	 			if ($i%2 == 0) $class_tr = 'row_odd';
178
-	    		else $class_tr = 'row_even';
179
-	    		$teachers_table .= '<tr class="'.$class_tr.'">
177
+                    if ($i%2 == 0) $class_tr = 'row_odd';
178
+                else $class_tr = 'row_even';
179
+                $teachers_table .= '<tr class="'.$class_tr.'">
180 180
 										<td>'.api_get_person_name($firstname,$lastname).' ('.$username.')</td>
181 181
 										<td align="right">'.$time_on_platform.'</td>
182 182
 									</tr>';
183 183
 
184
-	 			$i++;
185
-	 		}
186
-	 		$teachers_table .= '</table>';
187
- 		} else {
188
- 			$teachers_table .= get_lang('ThereIsNoInformationAboutYourTeachers');
189
- 		}
184
+                    $i++;
185
+                }
186
+                $teachers_table .= '</table>';
187
+            } else {
188
+                $teachers_table .= get_lang('ThereIsNoInformationAboutYourTeachers');
189
+            }
190 190
 
191
-  		$content .= $teachers_table;
191
+            $content .= $teachers_table;
192 192
 
193
- 		if (count($teachers) > 0) {
194
-			$content .= '<div style="text-align:right;margin-top:10px;"><a href="'.api_get_path(WEB_CODE_PATH).'mySpace/teachers.php">'.get_lang('SeeMore').'</a></div>';
195
-		}
196
-		//$content .= '</div>';
193
+            if (count($teachers) > 0) {
194
+            $content .= '<div style="text-align:right;margin-top:10px;"><a href="'.api_get_path(WEB_CODE_PATH).'mySpace/teachers.php">'.get_lang('SeeMore').'</a></div>';
195
+        }
196
+        //$content .= '</div>';
197 197
 
198
-  		return $content;
199
-  	}
198
+            return $content;
199
+        }
200 200
 
201 201
     /**
202
-	 * Get number of teachers
203
-	 * @return int
204
-	 */
205
-	function get_number_of_teachers()
202
+     * Get number of teachers
203
+     * @return int
204
+     */
205
+    function get_number_of_teachers()
206 206
     {
207
-		return count($this->teachers);
208
-	}
207
+        return count($this->teachers);
208
+    }
209 209
 }
Please login to merge, or discard this patch.
main/inc/lib/access_url_edit_sessions_to_url_functions.lib.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             while ($session = Database :: fetch_array($rs)) {
49 49
                 $i++;
50 50
                 if ($i<=10) {
51
-                     $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />';
51
+                        $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />';
52 52
                 } else {
53 53
                     $return .= '...<br />';
54 54
                 }
Please login to merge, or discard this patch.
src/Chamilo/ThemeBundle/EventListener/NavbarTaskListDemoListener.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
     protected function getTasks()
27 27
     {
28 28
         return array(
29
-         new TaskModel('make stuff', 30, TaskModel::COLOR_GREEN),
30
-         new TaskModel('make more stuff', 60),
31
-         new TaskModel('some more tasks to do', 10, TaskModel::COLOR_RED)
29
+            new TaskModel('make stuff', 30, TaskModel::COLOR_GREEN),
30
+            new TaskModel('make more stuff', 60),
31
+            new TaskModel('some more tasks to do', 10, TaskModel::COLOR_RED)
32 32
         );
33 33
 
34 34
     }
Please login to merge, or discard this patch.
main/inc/lib/geometry.lib.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
      *        for all j in [O..max[y][ : for all i in bords[$j] :
57 57
      *            (i,j) is a point inside an edge of the polygone
58 58
      */
59
-	$bord_lenght = $max['x'];
59
+    $bord_lenght = $max['x'];
60 60
     if ($max['y'] > $bord_lenght) {
61
-     	$bord_lenght = $max['y'];
61
+            $bord_lenght = $max['y'];
62 62
     }
63 63
 
64 64
     //$bords = array_fill(0, $bord_lenght-1, array()); // building this array
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     /* adding the first point of the polygone */
68 68
     if (is_array($bords[$poly[0]['y']])) //avoid warning
69
-    	array_push($bords[$poly[0]['y']], $poly[0]['x']);
69
+        array_push($bords[$poly[0]['y']], $poly[0]['x']);
70 70
 
71 71
     $i = 1; // we re-use $i and $old_pente bellow the loop
72 72
     $old_pente=0;
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
             if ($poly[$i-1]['x'] == $poly[$i]['x'])
79 79
                 continue; // twice the same point
80 80
             else {    //  infinite elevation of the edge
81
-            	if (is_array($bords[$poly[$i]['y']]))
82
-                	array_push($bords[$poly[$i]['y']],$poly[$i]['x']);
81
+                if (is_array($bords[$poly[$i]['y']]))
82
+                    array_push($bords[$poly[$i]['y']],$poly[$i]['x']);
83 83
                 $old_pente=0;
84 84
                 continue;
85 85
             }
86 86
         }
87 87
 
88
-		//echo 'point:'.$poly[$i]['y']; bug here
88
+        //echo 'point:'.$poly[$i]['y']; bug here
89 89
         // adding the point as a part of an edge
90 90
         if (is_array($bords[$poly[$i]['y']])) //avoid warning
91 91
         array_push($bords[$poly[$i]['y']], $poly[$i]['x']);
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
         if ($i>1)
103 103
             if (($old_pente<0 && $pente>0)
104 104
                     || ($old_pente>0 && $pente<0)) {
105
-				if (is_array($bords[$poly[$i]['y']])) //avoid warning
106
-                	array_push($bords[$poly[$i]['y']],$poly[$i]['x']);
105
+                if (is_array($bords[$poly[$i]['y']])) //avoid warning
106
+                    array_push($bords[$poly[$i]['y']],$poly[$i]['x']);
107 107
 
108 108
                 if (DEBUG)
109 109
                     echo '*('.$poly[$i]['x'].
110 110
                         ';'.$poly[$i]['y'].')   ';
111
-        	}
111
+            }
112 112
 
113 113
         /* detect the direction of the elevation in Y */
114 114
         $dy_inc = ($poly[$i]['y']-$poly[$i-1]['y']) > 0 ? 1 : -1;
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
         // elevation between $poly[0]['x'] and $poly[1]['x'])
138 138
         $rest = $poly[0]['y']-$poly[1]['y'];
139 139
         if ($rest!=0)
140
-        	$pente1 = ($poly[0]['x']-$poly[1]['x'])/($rest);
140
+            $pente1 = ($poly[0]['x']-$poly[1]['x'])/($rest);
141 141
         else
142
-			$pente1 = 0;
142
+            $pente1 = 0;
143 143
 
144 144
         // elevation between $poly[$i-1]['x'] and $poly[0]['x'])
145 145
         $pente = ($poly[$i-1]['x']-$poly[0]['x'])/
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 
152 152
         // doubling the first point if needed (see above)
153 153
         if (($pente1<0 && $pente>0) || ($pente1>0 && $pente<0)) {
154
-        	if (is_array($bords[$poly[$i - 1]['y']]))
155
-            	array_push($bords[$poly[$i - 1]['y']],  round($poly[$i - 1]['x']));
154
+            if (is_array($bords[$poly[$i - 1]['y']]))
155
+                array_push($bords[$poly[$i - 1]['y']],  round($poly[$i - 1]['x']));
156 156
             //if (DEBUG) echo '('.$poly[$i-1]['x'].';'.$poly[$i-1]['y'].')   ';
157 157
         }
158 158
         //  doubling the last point if neededd
159 159
         if (($old_pente<0 && $pente>0) || ($old_pente>0 && $pente<0)) {
160
-        	if (is_array($bords[$poly[$i-1]['y']])) //avoid warning
161
-            	array_push($bords[$poly[$i-1]['y']], round($poly[$i-1]['x']));
160
+            if (is_array($bords[$poly[$i-1]['y']])) //avoid warning
161
+                array_push($bords[$poly[$i-1]['y']], round($poly[$i-1]['x']));
162 162
             //if (DEBUG) echo '*('.$poly[$i-1]['x'].';'.$poly[$i-1]['y'].')   ';
163 163
         }
164 164
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     for ($i = 0; $i<$n; $i++) {  // Y
186 186
         //error_log(__FILE__.' - Border Num '.$i,0);
187 187
         if (is_array($bords[$i])) {
188
-       		sort($bords[$i]);
188
+                sort($bords[$i]);
189 189
         }
190 190
 
191 191
         for ($j = 0; $j<sizeof($bords[$i]);$j+=2) { // bords
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             for ($k = round($bords[$i][$j]); $k<=$bords[$i][$j+1];$k++) {
197 197
                 $res[$k][$i] = true; //filling the array with trues
198 198
                 if ($test == 1)  {
199
-                	/*how to draw the polygon in a human way:
199
+                    /*how to draw the polygon in a human way:
200 200
                 	In ubuntu : sudo apt-get install gnuplot
201 201
                 	Create an empty file with all points with the result of this echos (No commas, no point, no headers)
202 202
                 	In gnuplot:
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                 	For 2 polygons:  plot "/home/jmontoya/test", "/home/jmontoya/test2"
205 205
                 	A new window will appear with the plot
206 206
                 	*/
207
-                	echo $k.'  '.$i; echo '<br />';
207
+                    echo $k.'  '.$i; echo '<br />';
208 208
                 }
209 209
             }
210 210
         }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         list($x,$y) = explode(';',$pcoord);
309 309
         $points[] = array('x'=>$x,'y'=>$y);
310 310
     }
311
-	return $points;
311
+    return $points;
312 312
 }
313 313
 
314 314
 /**
@@ -321,11 +321,11 @@  discard block
 block discarded – undo
321 321
     $mx = 0;
322 322
     $my = 0;
323 323
     foreach ($coords1 as $coord) {
324
-    	if ($coord['x'] > $mx) {
324
+        if ($coord['x'] > $mx) {
325 325
             $mx = $coord['x'];
326
-    	}
326
+        }
327 327
         if ($coord['y'] > $my) {
328
-        	$my = $coord['y'];
328
+            $my = $coord['y'];
329 329
         }
330 330
     }
331 331
     foreach ($coords2 as $coord) {
Please login to merge, or discard this patch.
main/inc/lib/document.lib.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
  * @author Patrick Cool
17 17
  * @author René Haentjens, added CSV file import (October 2004)
18 18
  * @package chamilo.link
19
-
20 19
  */
21 20
 
22 21
 // Including libraries
Please login to merge, or discard this patch.
main/admin/access_urls.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,12 +85,12 @@
 block discarded – undo
85 85
     }
86 86
 }
87 87
 if(!empty($url_string)) {
88
-	Display :: display_warning_message(get_lang('AdminShouldBeRegisterInSite').'<br />'.$url_string,false);
88
+    Display :: display_warning_message(get_lang('AdminShouldBeRegisterInSite').'<br />'.$url_string,false);
89 89
 }
90 90
 
91 91
 // checking the current installation
92 92
 if ($current_access_url_id==-1) {
93
-	Display::display_warning_message(get_lang('URLNotConfiguredPleaseChangedTo').': '.api_get_path(WEB_PATH));
93
+    Display::display_warning_message(get_lang('URLNotConfiguredPleaseChangedTo').': '.api_get_path(WEB_PATH));
94 94
 } elseif(api_is_platform_admin()) {
95 95
     $quant= UrlManager::relation_url_user_exist(api_get_user_id(),$current_access_url_id);
96 96
     if ($quant==0) {
Please login to merge, or discard this patch.