Completed
Push — master ( dce25d...9db7be )
by Dimas
09:29 queued 12s
created
etc/server/msisdn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
   $pdo->where(['simcard' => strtolower($_REQUEST['simcard'])]);
6 6
 }
7 7
 $row = $pdo->row_array();
8
-$row = array_map(function ($db) {
8
+$row = array_map(function($db) {
9 9
   if (isset($db['msisdn'])) {
10 10
     if (strlen($db['msisdn']) <= 7) return;
11 11
     return $db['msisdn'];
Please login to merge, or discard this patch.
etc/server/comments/class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     return $html;
346 346
   }
347 347
 
348
-  function generateForm($location =  '', $type = 0, $comment = false)
348
+  function generateForm($location = '', $type = 0, $comment = false)
349 349
   {
350 350
     $this->setToken();
351 351
     if ($location == '')
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
     $sql = "SELECT `id` FROM `" . $this->settings['comments_table'] . "` WHERE `parent` = 0 ";
736 736
 
737 737
     if ($pageid)
738
-      $sql .=  " AND `pageid`='" . (int) $pageid . "'";
738
+      $sql .= " AND `pageid`='" . (int) $pageid . "'";
739 739
 
740 740
 
741 741
     $total = mysqli_num_rows(mysqli_query($this->link, $sql));
Please login to merge, or discard this patch.
etc/server/dummyimage/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 if (isset($_GET['text']) && $_GET['text']) {
154 154
 	$_GET['text'] = preg_replace_callback(
155 155
 		"/(0x[0-9A-F]{,3})/ui",
156
-		function ($matches) {
156
+		function($matches) {
157 157
 			return chr(hexdec($matches[0]));
158 158
 		},
159 159
 		$_GET['text']
Please login to merge, or discard this patch.
etc/server/dummyimage/color.class.php 1 patch
Spacing   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
     * @access private
22 22
     * @desc	array for RGB colors
23 23
     */	
24
-	var $rgb=array('r'=>0,'g'=>0,'b'=>0);
24
+	var $rgb = array('r'=>0, 'g'=>0, 'b'=>0);
25 25
 
26 26
     /**
27 27
     * @var	string $hex
28 28
     * @access private
29 29
     * @desc	variable for HTML HEX color
30 30
     */	
31
-	var $hex='';
31
+	var $hex = '';
32 32
 
33 33
     /**
34 34
     * @var	array $cmyk
35 35
     * @access private
36 36
     * @desc	array for cmyk colors
37 37
     */	
38
-	var $cmyk=array('c'=>0,'m'=>0,'y'=>0,'b'=>0);
38
+	var $cmyk = array('c'=>0, 'm'=>0, 'y'=>0, 'b'=>0);
39 39
 
40 40
 	/**
41 41
 	* Sets the RGB values	
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     * @access public	
46 46
 	* @desc Sets the RGB values
47 47
 	*/
48
-	function set_rgb($red,$green,$blue){
48
+	function set_rgb($red, $green, $blue) {
49 49
 		
50
-		$this->rgb['r']=$red;
51
-		$this->rgb['g']=$green;
52
-		$this->rgb['b']=$blue;
50
+		$this->rgb['r'] = $red;
51
+		$this->rgb['g'] = $green;
52
+		$this->rgb['b'] = $blue;
53 53
 		
54 54
 		$this->convert_rgb_to_cmyk();
55 55
 		$this->convert_rgb_to_hex();
@@ -61,24 +61,24 @@  discard block
 block discarded – undo
61 61
     * @access public	
62 62
 	* @desc Sets the HEX HTML color value like ffff00. It will convert shorthand to a 6 digit hex.
63 63
 	*/
64
-	function set_hex($hex){
64
+	function set_hex($hex) {
65 65
 		//$hex = settype($hex, 'string');
66 66
 		$hex = strtolower($hex);
67 67
 		$hex = preg_replace('/#/', '', $hex); //Strips out the # character
68 68
 		$hexlength = strlen($hex);
69 69
 		$input = $hex;
70
-		switch($hexlength) {
70
+		switch ($hexlength) {
71 71
 			case 1:
72
-				$hex = $input.$input.$input.$input.$input.$input;
72
+				$hex = $input . $input . $input . $input . $input . $input;
73 73
 			break;
74 74
 			case 2:
75
-				$hex = $input[0].$input[1].$input[0].$input[1].$input[0].$input[1];
75
+				$hex = $input[0] . $input[1] . $input[0] . $input[1] . $input[0] . $input[1];
76 76
 			break;
77 77
 			case 3:
78
-				$hex = $input[0].$input[0].$input[1].$input[1].$input[2].$input[2];
78
+				$hex = $input[0] . $input[0] . $input[1] . $input[1] . $input[2] . $input[2];
79 79
 			break;
80 80
 		}
81
-		$this->hex=$hex;
81
+		$this->hex = $hex;
82 82
 		
83 83
 		$this->convert_hex_to_rgb();
84 84
 		$this->convert_rgb_to_cmyk();
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     * @access public	
91 91
 	* @desc Sets the HTML color name, converting it to a 6 digit hex code.
92 92
 	*/
93
-	function set_name($name){
93
+	function set_name($name) {
94 94
 		$this->hex = $this->convert_name_to_hex($name);
95 95
 		
96 96
 		$this->convert_hex_to_rgb();
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
     * @access public
107 107
 	* @desc Sets the CMYK color values
108 108
 	*/	
109
-	function set_cmyk($c,$m,$y,$b){
110
-		$this->cmyk['c']=$c;
111
-		$this->cmyk['m']=$m;
112
-		$this->cmyk['y']=$y;
113
-		$this->cmyk['b']=$b;
109
+	function set_cmyk($c, $m, $y, $b) {
110
+		$this->cmyk['c'] = $c;
111
+		$this->cmyk['m'] = $m;
112
+		$this->cmyk['y'] = $y;
113
+		$this->cmyk['b'] = $b;
114 114
 		
115 115
 		$this->convert_cmyk_to_rgb();
116 116
 		$this->convert_rgb_to_hex();
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
     * @access public	
123 123
 	* @desc Sets the pantone color value
124 124
 	*/	
125
-	function set_pantone($pantone_name){
126
-		$this->pantone=$pantone_name;
127
-		$this->cmyk['c']=$this->pantone_pallete[$pantone_name]['c'];
128
-		$this->cmyk['m']=$this->pantone_pallete[$pantone_name]['m'];
129
-		$this->cmyk['y']=$this->pantone_pallete[$pantone_name]['y'];
130
-		$this->cmyk['b']=$this->pantone_pallete[$pantone_name]['b'];
125
+	function set_pantone($pantone_name) {
126
+		$this->pantone = $pantone_name;
127
+		$this->cmyk['c'] = $this->pantone_pallete[$pantone_name]['c'];
128
+		$this->cmyk['m'] = $this->pantone_pallete[$pantone_name]['m'];
129
+		$this->cmyk['y'] = $this->pantone_pallete[$pantone_name]['y'];
130
+		$this->cmyk['b'] = $this->pantone_pallete[$pantone_name]['b'];
131 131
 		
132 132
 		$this->convert_cmyk_to_rgb();
133 133
 		$this->convert_rgb_to_hex();		
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
     * @access public	
140 140
 	* @desc Sets the pantone pc color value
141 141
 	*/		
142
-	function set_pantone_pc($pantone_name){
143
-		$this->pantone_pc=$pantone_name;
144
-		$this->cmyk['c']=$this->pantone_pallete_pc[$pantone_name]['c'];
145
-		$this->cmyk['m']=$this->pantone_pallete_pc[$pantone_name]['m'];
146
-		$this->cmyk['y']=$this->pantone_pallete_pc[$pantone_name]['y'];
147
-		$this->cmyk['b']=$this->pantone_pallete_pc[$pantone_name]['b'];
142
+	function set_pantone_pc($pantone_name) {
143
+		$this->pantone_pc = $pantone_name;
144
+		$this->cmyk['c'] = $this->pantone_pallete_pc[$pantone_name]['c'];
145
+		$this->cmyk['m'] = $this->pantone_pallete_pc[$pantone_name]['m'];
146
+		$this->cmyk['y'] = $this->pantone_pallete_pc[$pantone_name]['y'];
147
+		$this->cmyk['b'] = $this->pantone_pallete_pc[$pantone_name]['b'];
148 148
 		
149 149
 		$this->convert_cmyk_to_rgb();
150 150
 		$this->convert_rgb_to_hex();			
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
     * @access public
159 159
 	* @desc Returns the RGB values of a set color
160 160
 	*/	
161
-	function get_rgb($val){
162
-		if($val) {
161
+	function get_rgb($val) {
162
+		if ($val) {
163 163
 			return $this->rgb[$val];
164 164
 		} else {
165 165
 			return $this->rgb;	
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     * @access public
173 173
 	* @desc Returns the HEX HTML color value of a set color
174 174
 	*/	
175
-	function get_hex(){
175
+	function get_hex() {
176 176
 		return $this->hex;
177 177
 	}
178 178
 	
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     * @access public	
183 183
 	* @desc Returns the CMYK values of a set color
184 184
 	*/	
185
-	function get_cmyk(){
185
+	function get_cmyk() {
186 186
 		return $this->cmyk;
187 187
 	}
188 188
 
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
     * @access private
192 192
 	* @desc Converts the RGB colors to HEX HTML colors
193 193
 	*/	
194
-	function convert_rgb_to_hex(){
195
-		$this->hex=$this->hex_trip[$this->rgb['r']].$this->hex_trip[$this->rgb['g']].$this->hex_trip[$this->rgb['b']];
194
+	function convert_rgb_to_hex() {
195
+		$this->hex = $this->hex_trip[$this->rgb['r']] . $this->hex_trip[$this->rgb['g']] . $this->hex_trip[$this->rgb['b']];
196 196
 	}
197 197
 	
198 198
 	/**
@@ -200,17 +200,17 @@  discard block
 block discarded – undo
200 200
     * @access private
201 201
 	* @desc Converts the RGB colors to CMYK colors
202 202
 	*/		
203
-	function convert_rgb_to_cmyk(){
204
-		$c = (255-$this->rgb['r'] )/255.0*100;
205
-		$m = (255-$this->rgb['g'] )/255.0*100;
206
-		$y = (255-$this->rgb['b'] )/255.0*100;
203
+	function convert_rgb_to_cmyk() {
204
+		$c = (255 - $this->rgb['r']) / 255.0 * 100;
205
+		$m = (255 - $this->rgb['g']) / 255.0 * 100;
206
+		$y = (255 - $this->rgb['b']) / 255.0 * 100;
207 207
 		
208
-		$b = min(array($c,$m,$y));
209
-		$c=$c-$b;
210
-		$m=$m-$b;
211
-		$y=$y-$b;
208
+		$b = min(array($c, $m, $y));
209
+		$c = $c - $b;
210
+		$m = $m - $b;
211
+		$y = $y - $b;
212 212
 		
213
-		$this->cmyk = array( 'c' => $c, 'm' => $m, 'y' => $y, 'b' => $b);
213
+		$this->cmyk = array('c' => $c, 'm' => $m, 'y' => $y, 'b' => $b);
214 214
 	}
215 215
 	
216 216
 	/**
@@ -218,22 +218,22 @@  discard block
 block discarded – undo
218 218
     * @access private
219 219
 	* @desc Converts the CMYK colors to RGB colors
220 220
 	*/		
221
-	function convert_cmyk_to_rgb(){
222
-		$red=$this->cmyk['c']+$this->cmyk['b'];
223
-		$green=$this->cmyk['m']+$this->cmyk['b'];
224
-		$blue=$this->cmyk['y']+$this->cmyk['b'];
221
+	function convert_cmyk_to_rgb() {
222
+		$red = $this->cmyk['c'] + $this->cmyk['b'];
223
+		$green = $this->cmyk['m'] + $this->cmyk['b'];
224
+		$blue = $this->cmyk['y'] + $this->cmyk['b'];
225 225
 		
226
-		$red=($red-100)*(-1);
227
-		$green=($green-100)*(-1);
228
-		$blue=($blue-100)*(-1);
226
+		$red = ($red - 100) * (-1);
227
+		$green = ($green - 100) * (-1);
228
+		$blue = ($blue - 100) * (-1);
229 229
 		
230
-		$red=round($red/100*255,0);
231
-		$green=round($green/100*255,0);
232
-		$blue=round($blue/100*255,0);
230
+		$red = round($red / 100 * 255, 0);
231
+		$green = round($green / 100 * 255, 0);
232
+		$blue = round($blue / 100 * 255, 0);
233 233
 		
234
-		$this->rgb['r']=$red;
235
-		$this->rgb['g']=$green;
236
-		$this->rgb['b']=$blue;
234
+		$this->rgb['r'] = $red;
235
+		$this->rgb['g'] = $green;
236
+		$this->rgb['b'] = $blue;
237 237
 	}
238 238
 	
239 239
 	/**
@@ -242,13 +242,13 @@  discard block
 block discarded – undo
242 242
 	* @desc Converts the HTML HEX colors to RGB colors
243 243
 	* @url http://css-tricks.com/snippets/php/convert-hex-to-rgb/
244 244
 	*/		
245
-	function convert_hex_to_rgb(){
246
-		$red = substr($this->hex,0,2);
247
-		$green = substr($this->hex,2,2);
248
-		$blue = substr($this->hex,4,2);
249
-        $this->rgb['r'] = hexdec( $red );
250
-        $this->rgb['g']  = hexdec( $green );
251
-        $this->rgb['b'] = hexdec( $blue );
245
+	function convert_hex_to_rgb() {
246
+		$red = substr($this->hex, 0, 2);
247
+		$green = substr($this->hex, 2, 2);
248
+		$blue = substr($this->hex, 4, 2);
249
+        $this->rgb['r'] = hexdec($red);
250
+        $this->rgb['g'] = hexdec($green);
251
+        $this->rgb['b'] = hexdec($blue);
252 252
 	}
253 253
 	
254 254
 	/**
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	* @desc Converts HTML color name to 6 digit HEX value.
259 259
 	* @url http://en.wikipedia.org/wiki/HTML_color_names
260 260
 	*/		
261
-	function convert_name_to_hex($name){
261
+	function convert_name_to_hex($name) {
262 262
 		$color_names = array(
263 263
 			'aqua' => '00ffff',
264 264
 			'cyan' => '00ffff',
Please login to merge, or discard this patch.