Completed
Pull Request — master (#2)
by Jimmy
1247:15 queued 1211:43
created
script/wp-emulator.script.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	define('ABSPATH', dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR);
3
-	define('WP_PLUGIN_DIR', dirname(dirname(dirname(__FILE__))) );
3
+	define('WP_PLUGIN_DIR', dirname(dirname(dirname(__FILE__))));
4 4
 	define('WP_LANG_DIR', 'FR');
5 5
 	define('WP_CONTENT_DIR', 'wp-content');
6 6
 
7
-	function __( $str )
7
+	function __($str)
8 8
 	{
9 9
 		$translate = "Result Testing text";
10 10
 		echo "[+] Requesting __ -> " . $str . PHP_EOL;
11 11
 		return $translate;
12 12
 	}
13 13
 
14
-	function add_action( $init, $object )
14
+	function add_action($init, $object)
15 15
 	{
16 16
 		$length = 0;
17 17
 		$hooked = "";
18 18
 		$oType = gettype($object);
19
-		if($oType == "object" || $oType == "array")
19
+		if ($oType == "object" || $oType == "array")
20 20
 		{
21 21
 			$hooked = "[";
22
-			foreach($object as $hook)
22
+			foreach ($object as $hook)
23 23
 			{
24 24
 				$length++;
25 25
 				$type = gettype($hook);
26 26
 
27
-				switch($type)
27
+				switch ($type)
28 28
 				{
29 29
 					case "integer":
30 30
 					case "boolean":
@@ -37,27 +37,27 @@  discard block
 block discarded – undo
37 37
 						break;
38 38
 				}
39 39
 			}
40
-			if($length > 0) $hooked = rtrim($hooked, ",");
40
+			if ($length > 0) $hooked = rtrim($hooked, ",");
41 41
 			$hooked .= "]";
42 42
 		}
43 43
 		else $hooked .= $object;
44 44
 		echo "[+] Adding action -> " . $init . " in " . $hooked . PHP_EOL;
45 45
 	}
46 46
 
47
-	function register_activation_hook( $file , $object )
47
+	function register_activation_hook($file, $object)
48 48
 	{
49 49
 		$length = 0;
50 50
 		$hooked = "";
51 51
 		$oType = gettype($object);
52
-		if($oType == "object" || $oType == "array")
52
+		if ($oType == "object" || $oType == "array")
53 53
 		{
54 54
 			$hooked = "[";
55
-			foreach($object as $hook)
55
+			foreach ($object as $hook)
56 56
 			{
57 57
 				$length++;
58 58
 				$type = gettype($hook);
59 59
 
60
-				switch($type)
60
+				switch ($type)
61 61
 				{
62 62
 					case "integer":
63 63
 					case "boolean":
@@ -70,27 +70,27 @@  discard block
 block discarded – undo
70 70
 						break;
71 71
 				}
72 72
 			}
73
-			if($length > 0) $hooked = rtrim($hooked, ",");
73
+			if ($length > 0) $hooked = rtrim($hooked, ",");
74 74
 			$hooked .= "]";
75 75
 		}
76 76
 		else $hooked .= $object;
77 77
 		echo "[+] Registering actiovation hook -> " . $file . " in " . $hooked . PHP_EOL;
78 78
 	}
79 79
 
80
-	function register_deactivation_hook( $file , $object )
80
+	function register_deactivation_hook($file, $object)
81 81
 	{
82 82
 		$length = 0;
83 83
 		$hooked = "";
84 84
 		$oType = gettype($object);
85
-		if($oType == "object" || $oType == "array")
85
+		if ($oType == "object" || $oType == "array")
86 86
 		{
87 87
 			$hooked = "[";
88
-			foreach($object as $hook)
88
+			foreach ($object as $hook)
89 89
 			{
90 90
 				$length++;
91 91
 				$type = gettype($hook);
92 92
 
93
-				switch($type)
93
+				switch ($type)
94 94
 				{
95 95
 					case "integer":
96 96
 					case "boolean":
@@ -103,29 +103,29 @@  discard block
 block discarded – undo
103 103
 						break;
104 104
 				}
105 105
 			}
106
-			if($length > 0) $hooked = rtrim($hooked, ",");
106
+			if ($length > 0) $hooked = rtrim($hooked, ",");
107 107
 			$hooked .= "]";
108 108
 		}
109 109
 		else $hooked .= $object;
110 110
 		echo "[+] Registering actiovation hook -> " . $file . " in " . $hooked . PHP_EOL;
111 111
 	}
112 112
 
113
-	function add_filter( $name, $fn, $nbr = "")
113
+	function add_filter($name, $fn, $nbr = "")
114 114
 	{
115 115
 		echo "[+] Adding filter -> " . $name . " X" . $nbr . PHP_EOL;
116 116
 	}
117 117
 
118
-	function add_shortcode( $name )
118
+	function add_shortcode($name)
119 119
 	{
120 120
 		echo "[+] Adding shortcode -> " . $name . PHP_EOL;
121 121
 	}
122 122
 
123
-	function add_option( $name, $conf)
123
+	function add_option($name, $conf)
124 124
 	{
125 125
 		echo "[+] Adding option -> " . $name . " conf:" . $conf . PHP_EOL;
126 126
 	}
127 127
 
128
-	function update_option( $name, $conf)
128
+	function update_option($name, $conf)
129 129
 	{
130 130
 		echo "[+] Updating option -> " . $name . " conf:" . $conf . PHP_EOL;
131 131
 	}
@@ -153,17 +153,17 @@  discard block
 block discarded – undo
153 153
 	function plugin_dir_path($path)
154 154
 	{
155 155
 		echo "[+] Plugin path -> " . $path . PHP_EOL;
156
-		return trailingslashit( dirname( $path ) );
156
+		return trailingslashit(dirname($path));
157 157
 	}
158 158
 
159
-	function trailingslashit( $string )
159
+	function trailingslashit($string)
160 160
 	{
161
-	    return untrailingslashit( $string ) . '/';
161
+	    return untrailingslashit($string) . '/';
162 162
 	}
163 163
 
164
-	function untrailingslashit( $string )
164
+	function untrailingslashit($string)
165 165
 	{
166
-	        return rtrim( $string, '/\\' );
166
+	        return rtrim($string, '/\\');
167 167
 	}
168 168
 
169 169
 	function site_url()
@@ -215,12 +215,12 @@  discard block
 block discarded – undo
215 215
 		return $dir;
216 216
 	}
217 217
 
218
-	function add_theme_support( $theme )
218
+	function add_theme_support($theme)
219 219
 	{
220 220
 		echo "[+] Adding theme support -> " . $theme . PHP_EOL;
221 221
 	}
222 222
 
223
-	function add_image_size( $image, $x, $y, $bool )
223
+	function add_image_size($image, $x, $y, $bool)
224 224
 	{
225 225
 		echo "[+] Adding image size -> " . $image . " x:" . $x . " y:" . $y . " bool:" . $bool . PHP_EOL;
226 226
 	}
@@ -232,24 +232,24 @@  discard block
 block discarded – undo
232 232
 		return $lang;
233 233
 	}
234 234
 
235
-	function load_plugin_textdomain( $name, $bool, $dir)
235
+	function load_plugin_textdomain($name, $bool, $dir)
236 236
 	{
237 237
 		echo "[+] Loading plugin textdomain -> " . $name . " bool:" . $bool . " dir:" . $dir . PHP_EOL;
238 238
 	}
239 239
 
240
-	function get_option( $name, $int = 0 )
240
+	function get_option($name, $int = 0)
241 241
 	{
242 242
 		echo "[+] Getting option -> " . $name . " int:" . $int . PHP_EOL;
243 243
 		return "";
244 244
 	}
245 245
 
246
-	function get_site_option( $name, $int = 0 )
246
+	function get_site_option($name, $int = 0)
247 247
 	{
248 248
 		echo "[+] Getting site option -> " . $name . " int:" . $int . PHP_EOL;
249 249
 		return "";
250 250
 	}
251 251
 
252
-	function current_time( $str )
252
+	function current_time($str)
253 253
 	{
254 254
 		$time = " 2005-08-05 10:41:13";
255 255
 		echo "[+] Requesting current_time -> " . $str . PHP_EOL;
@@ -258,17 +258,17 @@  discard block
 block discarded – undo
258 258
 
259 259
 	class WPDB
260 260
 	{
261
-		function prepare( $request = "" )
261
+		function prepare($request = "")
262 262
 		{
263 263
 			echo "[+] Preparing -> " . $request . PHP_EOL;
264 264
 		}
265 265
 
266
-		public static function get_var( $request = "" )
266
+		public static function get_var($request = "")
267 267
 		{
268 268
 			echo "[+] Requesting get var -> " . $request . PHP_EOL;
269 269
 		}
270 270
 
271
-		public static function get_charset_collate( $request = "" )
271
+		public static function get_charset_collate($request = "")
272 272
 		{
273 273
 			echo "[+] Requesting get charset collate -> " . $request . PHP_EOL;
274 274
 		}
Please login to merge, or discard this patch.
script/unit.script.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 $unitList = searchFiles('.' . DIRECTORY_SEPARATOR, END_TEST);
11 11
 
12 12
 // Loop on unitList
13
-foreach($unitList as $test)
13
+foreach ($unitList as $test)
14 14
 {
15 15
 	echo "[+] Testing -> " . $test . PHP_EOL;
16 16
 	include($test);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	$ite = new RecursiveIteratorIterator($dir);
29 29
 	$files = new RegexIterator($ite, $pattern, RegexIterator::GET_MATCH);
30 30
 	$fileList = array();
31
-	foreach($files as $file)
31
+	foreach ($files as $file)
32 32
 	{
33 33
 		$fileList[] = $file[0];
34 34
 	}
Please login to merge, or discard this patch.
includes/librairies/eav/wp_list_custom_attributes.class.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 
3 3
 /*	Check if file is include. No direct access possible with file url	*/
4
-if ( !defined( 'WPSHOP_VERSION' ) ) {
5
-	die( __('Access is not allowed by this way', 'wpshop') );
4
+if (!defined('WPSHOP_VERSION')) {
5
+	die(__('Access is not allowed by this way', 'wpshop'));
6 6
 }
7 7
 
8 8
 
@@ -12,36 +12,36 @@  discard block
 block discarded – undo
12 12
  * @package wpshop
13 13
  * @subpackage librairies
14 14
  */
15
-class wpshop_attributes_custom_List_table extends WP_List_Table{
15
+class wpshop_attributes_custom_List_table extends WP_List_Table {
16 16
 	var $datas;
17 17
 
18 18
 	/** ************************************************************************
19 19
 	 * REQUIRED. Set up a constructor that references the parent constructor. We
20 20
 	 * use the parent reference to set some default configs.
21 21
 	 ***************************************************************************/
22
-	function __construct(){
22
+	function __construct() {
23 23
 		global $status, $page;
24 24
 
25 25
 		//Set parent defaults
26
-		parent::__construct( array(
27
-			'singular'  => __('attribute\'s', 'wpshop'),    //singular name of the listed records
28
-			'plural'    => __('attributes\'', 'wpshop'),    //plural name of the listed records
26
+		parent::__construct(array(
27
+			'singular'  => __('attribute\'s', 'wpshop'), //singular name of the listed records
28
+			'plural'    => __('attributes\'', 'wpshop'), //plural name of the listed records
29 29
 			'ajax'     => true       //does this table support ajax?
30
-		) );
30
+		));
31 31
 	}
32 32
 
33 33
 	/*	Allows to set different listings for attributes	*/
34
-	function get_views(){
34
+	function get_views() {
35 35
 		$wpshop_attribute_links = array();
36 36
 
37 37
 		$active_nb = wpshop_attributes::getElement('', "'valid'");
38 38
 		$unactive_nb = wpshop_attributes::getElement('', "'moderated', 'notused'");
39 39
 		$deleted_nb = wpshop_attributes::getElement('', "'deleted'");
40 40
 
41
-		$wpshop_attribute_links['wpshop_attributes_links wpshop_attributes_links_valid'.(empty($_REQUEST['attribute_status'])?' current':'')] = '<a href="'.admin_url('admin.php?page=' . WPSHOP_URL_SLUG_ATTRIBUTE_LISTING).'" >'.__('Used attributes', 'wpshop').' ('.count($active_nb).')</a>';
42
-		$wpshop_attribute_links['wpshop_attributes_links wpshop_attributes_links_moderated'.(!empty($_REQUEST['attribute_status']) && ($_REQUEST['attribute_status']=='unactive')?' current':'')] = '<a href="'.admin_url('admin.php?page=' . WPSHOP_URL_SLUG_ATTRIBUTE_LISTING.'&attribute_status=unactive').'" >'.__('Unactive attributes', 'wpshop').' ('.count($unactive_nb).')</a>';
43
-		$wpshop_attribute_links['wpshop_attributes_links wpshop_attributes_links_deleted'.(!empty($_REQUEST['attribute_status']) && ($_REQUEST['attribute_status']=='deleted')?' current':'')] = '<a href="'.admin_url('admin.php?page=' . WPSHOP_URL_SLUG_ATTRIBUTE_LISTING.'&attribute_status=deleted').'" >'.__('Trashed attributes', 'wpshop').' ('.count($deleted_nb).')</a>';
44
-		$wpshop_attribute_links['unit_management_link'] = '<a href="#" id="wpshop_attribute_unit_manager_opener">'.__('Unit management', 'wpshop').'</a>';
41
+		$wpshop_attribute_links['wpshop_attributes_links wpshop_attributes_links_valid' . (empty($_REQUEST['attribute_status']) ? ' current' : '')] = '<a href="' . admin_url('admin.php?page=' . WPSHOP_URL_SLUG_ATTRIBUTE_LISTING) . '" >' . __('Used attributes', 'wpshop') . ' (' . count($active_nb) . ')</a>';
42
+		$wpshop_attribute_links['wpshop_attributes_links wpshop_attributes_links_moderated' . (!empty($_REQUEST['attribute_status']) && ($_REQUEST['attribute_status'] == 'unactive') ? ' current' : '')] = '<a href="' . admin_url('admin.php?page=' . WPSHOP_URL_SLUG_ATTRIBUTE_LISTING . '&attribute_status=unactive') . '" >' . __('Unactive attributes', 'wpshop') . ' (' . count($unactive_nb) . ')</a>';
43
+		$wpshop_attribute_links['wpshop_attributes_links wpshop_attributes_links_deleted' . (!empty($_REQUEST['attribute_status']) && ($_REQUEST['attribute_status'] == 'deleted') ? ' current' : '')] = '<a href="' . admin_url('admin.php?page=' . WPSHOP_URL_SLUG_ATTRIBUTE_LISTING . '&attribute_status=deleted') . '" >' . __('Trashed attributes', 'wpshop') . ' (' . count($deleted_nb) . ')</a>';
44
+		$wpshop_attribute_links['unit_management_link'] = '<a href="#" id="wpshop_attribute_unit_manager_opener">' . __('Unit management', 'wpshop') . '</a>';
45 45
 		$wpshop_attribute_links['unit_management_dialog'] = '<div id="wpshop_attribute_unit_manager"title="' . __('Unit management', 'wpshop') . '" class="wpshopHide" ><div class="loading_picture_container" id="product_chooser_picture" ><img src="' . WPSHOP_LOADING_ICON . '" alt="loading..." /></div></div>';
46 46
 		return $wpshop_attribute_links;
47 47
 	}
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
 	 * @see WP_List_Table::::single_row_columns()
60 60
 	 * @return array An associative array containing column information: 'slugs'=>'Visible Titles'
61 61
 	 **************************************************************************/
62
-	function get_columns(){
62
+	function get_columns() {
63 63
 		$columns = array(
64
-			'cb'       	=> '',//'<input type="checkbox" />', //Render a checkbox instead of text
64
+			'cb'       	=> '', //'<input type="checkbox" />', //Render a checkbox instead of text
65 65
 			'id'       	=> __('Id.', 'wpshop'),
66 66
 			'name'    	=> __('Name', 'wpshop'),
67 67
 			'status'    => __('Status', 'wpshop'),
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 	 * @param array $column_name The name/slug of the column to be processed
93 93
 	 * @return string Text or HTML to be placed inside the column <td>
94 94
 	 **************************************************************************/
95
-	function column_default($item, $column_name){
96
-		switch($column_name){
95
+	function column_default($item, $column_name) {
96
+		switch ($column_name) {
97 97
 			default:
98
-				return print_r($item,true); //Show the whole array for troubleshooting purposes
98
+				return print_r($item, true); //Show the whole array for troubleshooting purposes
99 99
 		}
100 100
 	}
101 101
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * @param array $item A singular item (one full row's worth of data)
116 116
 	 * @return string Text to be placed inside the column <td> (movie title only)
117 117
 	 **************************************************************************/
118
-	function column_id($item){
118
+	function column_id($item) {
119 119
 		return $item['id'];
120 120
 	}
121 121
 	/** ************************************************************************
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 * @param array $item A singular item (one full row's worth of data)
135 135
 	 * @return string Text to be placed inside the column <td> (movie title only)
136 136
 	 **************************************************************************/
137
-	function column_status($item){
137
+	function column_status($item) {
138 138
 		return __($item['status'], 'wpshop');
139 139
 	}
140 140
 	/** ************************************************************************
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * @param array $item A singular item (one full row's worth of data)
154 154
 	 * @return string Text to be placed inside the column <td> (movie title only)
155 155
 	 **************************************************************************/
156
-	function column_code($item){
156
+	function column_code($item) {
157 157
 		return $item['code'];
158 158
 	}
159 159
 	/** ************************************************************************
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
 	 * @param array $item A singular item (one full row's worth of data)
173 173
 	 * @return string Text to be placed inside the column <td> (movie title only)
174 174
 	 **************************************************************************/
175
-	function column_entity($item){
176
-		return __($item['entity'],'wpshop');
175
+	function column_entity($item) {
176
+		return __($item['entity'], 'wpshop');
177 177
 	}
178 178
 	/** ************************************************************************
179 179
 	 * Recommended. This is a custom column method and is responsible for what
@@ -191,27 +191,27 @@  discard block
 block discarded – undo
191 191
 	 * @param array $item A singular item (one full row's worth of data)
192 192
 	 * @return string Text to be placed inside the column <td> (movie title only)
193 193
 	 **************************************************************************/
194
-	function column_name($item){
194
+	function column_name($item) {
195 195
 		$attribute_undeletable = unserialize(WPSHOP_ATTRIBUTE_UNDELETABLE);
196 196
 
197
-		$link_format = admin_url('admin.php').'?page=%2$s&amp;action=%3$s&amp;id=%4$s';
198
-		$default_action='edit';
199
-		$default_action_text=__('Edit', 'wpshop');
200
-		if(!empty($_REQUEST['attribute_status']) && ($_REQUEST['attribute_status']=='deleted')){
201
-			$default_action='activate';
202
-			$default_action_text=__('Restore', 'wpshop');
197
+		$link_format = admin_url('admin.php') . '?page=%2$s&amp;action=%3$s&amp;id=%4$s';
198
+		$default_action = 'edit';
199
+		$default_action_text = __('Edit', 'wpshop');
200
+		if (!empty($_REQUEST['attribute_status']) && ($_REQUEST['attribute_status'] == 'deleted')) {
201
+			$default_action = 'activate';
202
+			$default_action_text = __('Restore', 'wpshop');
203 203
 		}
204 204
 		//Build row actions
205 205
 		$actions = array(
206
-			'edit'     => sprintf('<a href="'.$link_format.'">'.$default_action_text.'</a>',WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_LISTING,$default_action,$item['id'])
206
+			'edit'     => sprintf('<a href="' . $link_format . '">' . $default_action_text . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_LISTING, $default_action, $item['id'])
207 207
 		);
208
-		if(empty($_REQUEST['attribute_status']) && (!in_array($item['code'], $attribute_undeletable))){
209
-			$actions['delete'] = sprintf('<a href="'.$link_format.'">'.__('Delete', 'wpshop').'</a>',WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_LISTING,'delete',$item['id']);
208
+		if (empty($_REQUEST['attribute_status']) && (!in_array($item['code'], $attribute_undeletable))) {
209
+			$actions['delete'] = sprintf('<a href="' . $link_format . '">' . __('Delete', 'wpshop') . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_LISTING, 'delete', $item['id']);
210 210
 		}
211 211
 
212 212
 		//Return the title contents
213 213
 		return sprintf('%1$s%2$s',
214
-			/*$1%s*/ sprintf('<a href="'.$link_format.'">'.__($item['name'], 'wpshop').'</a>',WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_LISTING,$default_action,$item['id']),
214
+			/*$1%s*/ sprintf('<a href="' . $link_format . '">' . __($item['name'], 'wpshop') . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_LISTING, $default_action, $item['id']),
215 215
 			/*$3%s*/ $this->row_actions($actions)
216 216
 		);
217 217
 	}
@@ -224,11 +224,11 @@  discard block
 block discarded – undo
224 224
 	 * @param array $item A singular item (one full row's worth of data)
225 225
 	 * @return string Text to be placed inside the column <td> (movie title only)
226 226
 	 **************************************************************************/
227
-	function column_cb($item){
227
+	function column_cb($item) {
228 228
 		return '';
229 229
 		return sprintf(
230 230
 			'<input type="checkbox" name="%1$s[]" value="%2$s" />',
231
-			/*$1%s*/ $this->_args['singular'],  //Let's simply repurpose the table's singular label ("movie")
231
+			/*$1%s*/ $this->_args['singular'], //Let's simply repurpose the table's singular label ("movie")
232 232
 			/*$2%s*/ $item['id']             //The value of the checkbox should be the record's id
233 233
 		);
234 234
 	}
@@ -249,8 +249,8 @@  discard block
 block discarded – undo
249 249
 	 **************************************************************************/
250 250
 	function get_sortable_columns() {
251 251
 		$sortable_columns = array(
252
-			'name'    => array('frontend_label',true),    //true means its already sorted
253
-			'status'  => array('status',true)
252
+			'name'    => array('frontend_label', true), //true means its already sorted
253
+			'status'  => array('status', true)
254 254
 		);
255 255
 		return $sortable_columns;
256 256
 	}
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 **************************************************************************/
286 286
 	function process_bulk_action() {
287 287
 		//Detect when a bulk action is being triggered...
288
-		if( 'delete'===$this->current_action() ) {
288
+		if ('delete' === $this->current_action()) {
289 289
 			wp_die('Items deleted (or they would be if we had items to delete)!');
290 290
 		}
291 291
 	}
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	 **************************************************************************/
307 307
 	function prepare_items() {
308 308
 		/*	First, lets decide how many records per page to show	*/
309
-		$per_page = 10;//$this->get_items_per_page('attributes_per_page', 10);
309
+		$per_page = 10; //$this->get_items_per_page('attributes_per_page', 10);
310 310
 
311 311
 		/**
312 312
 		 * REQUIRED. Now we need to define our column headers. This includes a complete
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 		 * to ensure that the data is trimmed to only the current page. We can use
365 365
 		 * array_slice() to
366 366
 		*/
367
-		$data = array_slice($data,(($current_page-1)*$per_page),$per_page);
367
+		$data = array_slice($data, (($current_page - 1) * $per_page), $per_page);
368 368
 
369 369
 		/**
370 370
 		 * REQUIRED. Now we can add our *sorted* data to the items property, where
@@ -373,10 +373,10 @@  discard block
 block discarded – undo
373 373
 		$this->items = $data;
374 374
 
375 375
 		/*	REQUIRED. We also have to register our pagination options & calculations.	*/
376
-		$this->set_pagination_args( array(
377
-			'total_items' => $total_items,               		//WE have to calculate the total number of items
378
-			'per_page'    => $per_page,                 		//WE have to determine how many items to show on a page
379
-			'total_pages' => ceil($total_items/$per_page)   //WE have to calculate the total number of pages
380
-		) );
376
+		$this->set_pagination_args(array(
377
+			'total_items' => $total_items, //WE have to calculate the total number of items
378
+			'per_page'    => $per_page, //WE have to determine how many items to show on a page
379
+			'total_pages' => ceil($total_items / $per_page)   //WE have to calculate the total number of pages
380
+		));
381 381
 	}
382 382
 }
Please login to merge, or discard this patch.
includes/librairies/eav/wp_list_custom_attributes_set.class.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 
3 3
 /*	Check if file is include. No direct access possible with file url	*/
4
-if ( !defined( 'WPSHOP_VERSION' ) ) {
5
-	die( __('Access is not allowed by this way', 'wpshop') );
4
+if (!defined('WPSHOP_VERSION')) {
5
+	die(__('Access is not allowed by this way', 'wpshop'));
6 6
 }
7 7
 
8 8
 
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 * @package wpshop
12 12
 * @subpackage librairies
13 13
 */
14
-class wpshop_attributes_set_custom_List_table extends WP_List_Table{
14
+class wpshop_attributes_set_custom_List_table extends WP_List_Table {
15 15
 
16 16
 	var $datas;
17 17
 
@@ -19,26 +19,26 @@  discard block
 block discarded – undo
19 19
 	* REQUIRED. Set up a constructor that references the parent constructor. We
20 20
 	* use the parent reference to set some default configs.
21 21
 	***************************************************************************/
22
-	function __construct(){
22
+	function __construct() {
23 23
 		global $status, $page;
24 24
 
25 25
 		//Set parent defaults
26
-		parent::__construct( array(
27
-			'singular'  => __('attribute\'s set', 'wpshop'),    //singular name of the listed records
28
-			'plural'    => __('attributes\' set', 'wpshop'),    //plural name of the listed records
26
+		parent::__construct(array(
27
+			'singular'  => __('attribute\'s set', 'wpshop'), //singular name of the listed records
28
+			'plural'    => __('attributes\' set', 'wpshop'), //plural name of the listed records
29 29
 			'ajax'     => true       //does this table support ajax?
30
-		) );
30
+		));
31 31
 	}
32 32
 
33 33
 	/*	Allows to set different listings for attributes	*/
34
-	function get_views(){
34
+	function get_views() {
35 35
 		$wpshop_attribute_links = array();
36 36
 
37 37
 		$active_nb = wpshop_attributes_set::getElement('', "'moderated','valid'");
38 38
 		$deleted_nb = wpshop_attributes_set::getElement('', "'deleted'");
39 39
 
40
-		$wpshop_attribute_links['wpshop_attribute_groups_links wpshop_attribute_groups_links_valid'.(empty($_REQUEST['attribute_groups_status'])?' current':'')] = '<a href="'.admin_url('admin.php?page='.wpshop_attributes_set::getEditionSlug()).'" >'.__('Attribute groups', 'wpshop').' ('.count($active_nb).')</a>';
41
-		$wpshop_attribute_links['wpshop_attribute_groups_links wpshop_attribute_groups_links_deleted'.(!empty($_REQUEST['attribute_groups_status']) && ($_REQUEST['attribute_groups_status']=='deleted')?' current':'')] = '<a href="'.admin_url('admin.php?page='.wpshop_attributes_set::getEditionSlug().'&attribute_groups_status=deleted').'" >'.__('Trashed attribute groups', 'wpshop').' ('.count($deleted_nb).')</a>';
40
+		$wpshop_attribute_links['wpshop_attribute_groups_links wpshop_attribute_groups_links_valid' . (empty($_REQUEST['attribute_groups_status']) ? ' current' : '')] = '<a href="' . admin_url('admin.php?page=' . wpshop_attributes_set::getEditionSlug()) . '" >' . __('Attribute groups', 'wpshop') . ' (' . count($active_nb) . ')</a>';
41
+		$wpshop_attribute_links['wpshop_attribute_groups_links wpshop_attribute_groups_links_deleted' . (!empty($_REQUEST['attribute_groups_status']) && ($_REQUEST['attribute_groups_status'] == 'deleted') ? ' current' : '')] = '<a href="' . admin_url('admin.php?page=' . wpshop_attributes_set::getEditionSlug() . '&attribute_groups_status=deleted') . '" >' . __('Trashed attribute groups', 'wpshop') . ' (' . count($deleted_nb) . ')</a>';
42 42
 
43 43
 		return $wpshop_attribute_links;
44 44
 	}
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 	* @see WP_List_Table::::single_row_columns()
57 57
 	* @return array An associative array containing column information: 'slugs'=>'Visible Titles'
58 58
 	**************************************************************************/
59
-	function get_columns(){
59
+	function get_columns() {
60 60
 		$columns = array(
61
-			'cb'       => '',//'<input type="checkbox" />', //Render a checkbox instead of text
61
+			'cb'       => '', //'<input type="checkbox" />', //Render a checkbox instead of text
62 62
 			'id'       => 'Id.',
63 63
 			'name'    => 'Nom',
64 64
 			'status'    => 'Statut',
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 	* @param array $column_name The name/slug of the column to be processed
90 90
 	* @return string Text or HTML to be placed inside the column <td>
91 91
 	**************************************************************************/
92
-	function column_default($item, $column_name){
93
-		switch($column_name){
92
+	function column_default($item, $column_name) {
93
+		switch ($column_name) {
94 94
 			default:
95
-				return print_r($item,true); //Show the whole array for troubleshooting purposes
95
+				return print_r($item, true); //Show the whole array for troubleshooting purposes
96 96
 		}
97 97
 	}
98 98
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 	* @param array $item A singular item (one full row's worth of data)
113 113
 	* @return string Text to be placed inside the column <td> (movie title only)
114 114
 	**************************************************************************/
115
-	function column_id($item){
115
+	function column_id($item) {
116 116
 		return $item['id'];
117 117
 	}
118 118
 	/** ************************************************************************
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	* @param array $item A singular item (one full row's worth of data)
132 132
 	* @return string Text to be placed inside the column <td> (movie title only)
133 133
 	**************************************************************************/
134
-	function column_status($item){
134
+	function column_status($item) {
135 135
 		return __($item['status'], 'wpshop');
136 136
 	}
137 137
 	/** ************************************************************************
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	* @param array $item A singular item (one full row's worth of data)
151 151
 	* @return string Text to be placed inside the column <td> (movie title only)
152 152
 	**************************************************************************/
153
-	function column_content($item){
153
+	function column_content($item) {
154 154
 		return $item['content'];
155 155
 	}
156 156
 	/** ************************************************************************
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
 	* @param array $item A singular item (one full row's worth of data)
170 170
 	* @return string Text to be placed inside the column <td> (movie title only)
171 171
 	**************************************************************************/
172
-	function column_entity($item){
173
-		return __($item['entity'],'wpshop');
172
+	function column_entity($item) {
173
+		return __($item['entity'], 'wpshop');
174 174
 	}
175 175
 	/** ************************************************************************
176 176
 	* Recommended. This is a custom column method and is responsible for what
@@ -188,22 +188,22 @@  discard block
 block discarded – undo
188 188
 	* @param array $item A singular item (one full row's worth of data)
189 189
 	* @return string Text to be placed inside the column <td> (movie title only)
190 190
 	**************************************************************************/
191
-	function column_name($item){
191
+	function column_name($item) {
192 192
 		//Build row actions
193
-		$default_action='edit';
194
-		$default_action_text=__('Edit', 'wpshop');
195
-		if(!empty($_REQUEST['attribute_groups_status']) && ($_REQUEST['attribute_groups_status']=='deleted')){
196
-			$default_action='activate';
197
-			$default_action_text=__('Restore', 'wpshop');
193
+		$default_action = 'edit';
194
+		$default_action_text = __('Edit', 'wpshop');
195
+		if (!empty($_REQUEST['attribute_groups_status']) && ($_REQUEST['attribute_groups_status'] == 'deleted')) {
196
+			$default_action = 'activate';
197
+			$default_action_text = __('Restore', 'wpshop');
198 198
 		}
199
-		$actions['edit']=sprintf('<a href="'.admin_url('admin.php').'?page=%2$s&amp;action=%3$s&amp;id=%4$s">'.$default_action_text.'</a>',WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING,$default_action,$item['id']);
199
+		$actions['edit'] = sprintf('<a href="' . admin_url('admin.php') . '?page=%2$s&amp;action=%3$s&amp;id=%4$s">' . $default_action_text . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING, $default_action, $item['id']);
200 200
 
201 201
 		if (empty($_REQUEST['attribute_groups_status']))
202
-			$actions['delete']=sprintf('<a href="'.admin_url('admin.php').'?page=%2$s&amp;action=%3$s&amp;id=%4$s">'.__('Delete', 'wpshop').'</a>',WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING,'delete',$item['id']);
202
+			$actions['delete'] = sprintf('<a href="' . admin_url('admin.php') . '?page=%2$s&amp;action=%3$s&amp;id=%4$s">' . __('Delete', 'wpshop') . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING, 'delete', $item['id']);
203 203
 
204 204
 		//Return the title contents
205 205
 		return sprintf('%1$s%2$s',
206
-			/*$1%s*/ sprintf('<a href="'.admin_url('admin.php').'?page=%2$s&amp;action=%3$s&amp;id=%4$s">'.__($item['name'], 'wpshop').'</a>',WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING,'edit',$item['id']),
206
+			/*$1%s*/ sprintf('<a href="' . admin_url('admin.php') . '?page=%2$s&amp;action=%3$s&amp;id=%4$s">' . __($item['name'], 'wpshop') . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING, 'edit', $item['id']),
207 207
 			/*$3%s*/ $this->row_actions($actions)
208 208
 		);
209 209
 	}
@@ -216,11 +216,11 @@  discard block
 block discarded – undo
216 216
 	* @param array $item A singular item (one full row's worth of data)
217 217
 	* @return string Text to be placed inside the column <td> (movie title only)
218 218
 	**************************************************************************/
219
-	function column_cb($item){
219
+	function column_cb($item) {
220 220
 		return '';
221 221
 		return sprintf(
222 222
 			'<input type="checkbox" name="%1$s[]" value="%2$s" />',
223
-			/*$1%s*/ $this->_args['singular'],  //Let's simply repurpose the table's singular label ("movie")
223
+			/*$1%s*/ $this->_args['singular'], //Let's simply repurpose the table's singular label ("movie")
224 224
 			/*$2%s*/ $item['id']             //The value of the checkbox should be the record's id
225 225
 		);
226 226
 	}
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	**************************************************************************/
277 277
 	function process_bulk_action() {
278 278
 		//Detect when a bulk action is being triggered...
279
-		if( 'delete'===$this->current_action() ) {
279
+		if ('delete' === $this->current_action()) {
280 280
 			wp_die('Items deleted (or they would be if we had items to delete)!');
281 281
 		}
282 282
 	}
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 		* to ensure that the data is trimmed to only the current page. We can use
356 356
 		* array_slice() to
357 357
 		*/
358
-		$data = array_slice($data,(($current_page-1)*$per_page),$per_page);
358
+		$data = array_slice($data, (($current_page - 1) * $per_page), $per_page);
359 359
 
360 360
 		/**
361 361
 		* REQUIRED. Now we can add our *sorted* data to the items property, where
@@ -366,11 +366,11 @@  discard block
 block discarded – undo
366 366
 		/**
367 367
 		* REQUIRED. We also have to register our pagination options & calculations.
368 368
 		*/
369
-		$this->set_pagination_args( array(
370
-			'total_items' => $total_items,               		//WE have to calculate the total number of items
371
-			'per_page'    => $per_page,                 		//WE have to determine how many items to show on a page
372
-			'total_pages' => ceil($total_items/$per_page)   //WE have to calculate the total number of pages
373
-		) );
369
+		$this->set_pagination_args(array(
370
+			'total_items' => $total_items, //WE have to calculate the total number of items
371
+			'per_page'    => $per_page, //WE have to determine how many items to show on a page
372
+			'total_pages' => ceil($total_items / $per_page)   //WE have to calculate the total number of pages
373
+		));
374 374
 	}
375 375
 
376 376
 }
Please login to merge, or discard this patch.
includes/librairies/pdf/font/helveticabi.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
2
-$fpdf_charwidths['helveticaBI']=array(
3
-	chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
4
-	chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
5
-	','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
6
-	'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
7
-	'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
8
-	'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
9
-	chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
10
-	chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
11
-	chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
12
-	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
13
-	chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
14
-	chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
1
+<?php if (!defined('ABSPATH')) exit;
2
+$fpdf_charwidths['helveticaBI'] = array(
3
+	chr(0)=>278, chr(1)=>278, chr(2)=>278, chr(3)=>278, chr(4)=>278, chr(5)=>278, chr(6)=>278, chr(7)=>278, chr(8)=>278, chr(9)=>278, chr(10)=>278, chr(11)=>278, chr(12)=>278, chr(13)=>278, chr(14)=>278, chr(15)=>278, chr(16)=>278, chr(17)=>278, chr(18)=>278, chr(19)=>278, chr(20)=>278, chr(21)=>278,
4
+	chr(22)=>278, chr(23)=>278, chr(24)=>278, chr(25)=>278, chr(26)=>278, chr(27)=>278, chr(28)=>278, chr(29)=>278, chr(30)=>278, chr(31)=>278, ' '=>278, '!'=>333, '"'=>474, '#'=>556, '$'=>556, '%'=>889, '&'=>722, '\''=>238, '('=>333, ')'=>333, '*'=>389, '+'=>584,
5
+	','=>278, '-'=>333, '.'=>278, '/'=>278, '0'=>556, '1'=>556, '2'=>556, '3'=>556, '4'=>556, '5'=>556, '6'=>556, '7'=>556, '8'=>556, '9'=>556, ':'=>333, ';'=>333, '<'=>584, '='=>584, '>'=>584, '?'=>611, '@'=>975, 'A'=>722,
6
+	'B'=>722, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>722, 'I'=>278, 'J'=>556, 'K'=>722, 'L'=>611, 'M'=>833, 'N'=>722, 'O'=>778, 'P'=>667, 'Q'=>778, 'R'=>722, 'S'=>667, 'T'=>611, 'U'=>722, 'V'=>667, 'W'=>944,
7
+	'X'=>667, 'Y'=>667, 'Z'=>611, '['=>333, '\\'=>278, ']'=>333, '^'=>584, '_'=>556, '`'=>333, 'a'=>556, 'b'=>611, 'c'=>556, 'd'=>611, 'e'=>556, 'f'=>333, 'g'=>611, 'h'=>611, 'i'=>278, 'j'=>278, 'k'=>556, 'l'=>278, 'm'=>889,
8
+	'n'=>611, 'o'=>611, 'p'=>611, 'q'=>611, 'r'=>389, 's'=>556, 't'=>333, 'u'=>611, 'v'=>556, 'w'=>778, 'x'=>556, 'y'=>556, 'z'=>500, '{'=>389, '|'=>280, '}'=>389, '~'=>584, chr(127)=>350, chr(128)=>556, chr(129)=>350, chr(130)=>278, chr(131)=>556,
9
+	chr(132)=>500, chr(133)=>1000, chr(134)=>556, chr(135)=>556, chr(136)=>333, chr(137)=>1000, chr(138)=>667, chr(139)=>333, chr(140)=>1000, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>278, chr(146)=>278, chr(147)=>500, chr(148)=>500, chr(149)=>350, chr(150)=>556, chr(151)=>1000, chr(152)=>333, chr(153)=>1000,
10
+	chr(154)=>556, chr(155)=>333, chr(156)=>944, chr(157)=>350, chr(158)=>500, chr(159)=>667, chr(160)=>278, chr(161)=>333, chr(162)=>556, chr(163)=>556, chr(164)=>556, chr(165)=>556, chr(166)=>280, chr(167)=>556, chr(168)=>333, chr(169)=>737, chr(170)=>370, chr(171)=>556, chr(172)=>584, chr(173)=>333, chr(174)=>737, chr(175)=>333,
11
+	chr(176)=>400, chr(177)=>584, chr(178)=>333, chr(179)=>333, chr(180)=>333, chr(181)=>611, chr(182)=>556, chr(183)=>278, chr(184)=>333, chr(185)=>333, chr(186)=>365, chr(187)=>556, chr(188)=>834, chr(189)=>834, chr(190)=>834, chr(191)=>611, chr(192)=>722, chr(193)=>722, chr(194)=>722, chr(195)=>722, chr(196)=>722, chr(197)=>722,
12
+	chr(198)=>1000, chr(199)=>722, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>278, chr(205)=>278, chr(206)=>278, chr(207)=>278, chr(208)=>722, chr(209)=>722, chr(210)=>778, chr(211)=>778, chr(212)=>778, chr(213)=>778, chr(214)=>778, chr(215)=>584, chr(216)=>778, chr(217)=>722, chr(218)=>722, chr(219)=>722,
13
+	chr(220)=>722, chr(221)=>667, chr(222)=>667, chr(223)=>611, chr(224)=>556, chr(225)=>556, chr(226)=>556, chr(227)=>556, chr(228)=>556, chr(229)=>556, chr(230)=>889, chr(231)=>556, chr(232)=>556, chr(233)=>556, chr(234)=>556, chr(235)=>556, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>611, chr(241)=>611,
14
+	chr(242)=>611, chr(243)=>611, chr(244)=>611, chr(245)=>611, chr(246)=>611, chr(247)=>584, chr(248)=>611, chr(249)=>611, chr(250)=>611, chr(251)=>611, chr(252)=>611, chr(253)=>556, chr(254)=>611, chr(255)=>556);
15 15
 ?>
Please login to merge, or discard this patch.
includes/librairies/pdf/font/times.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
2
-$fpdf_charwidths['times']=array(
3
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
4
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
5
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
6
-	'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
7
-	'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
8
-	'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
9
-	chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
10
-	chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
11
-	chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
12
-	chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
13
-	chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
14
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
1
+<?php if (!defined('ABSPATH')) exit;
2
+$fpdf_charwidths['times'] = array(
3
+	chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250,
4
+	chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>408, '#'=>500, '$'=>500, '%'=>833, '&'=>778, '\''=>180, '('=>333, ')'=>333, '*'=>500, '+'=>564,
5
+	','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>278, ';'=>278, '<'=>564, '='=>564, '>'=>564, '?'=>444, '@'=>921, 'A'=>722,
6
+	'B'=>667, 'C'=>667, 'D'=>722, 'E'=>611, 'F'=>556, 'G'=>722, 'H'=>722, 'I'=>333, 'J'=>389, 'K'=>722, 'L'=>611, 'M'=>889, 'N'=>722, 'O'=>722, 'P'=>556, 'Q'=>722, 'R'=>667, 'S'=>556, 'T'=>611, 'U'=>722, 'V'=>722, 'W'=>944,
7
+	'X'=>722, 'Y'=>722, 'Z'=>611, '['=>333, '\\'=>278, ']'=>333, '^'=>469, '_'=>500, '`'=>333, 'a'=>444, 'b'=>500, 'c'=>444, 'd'=>500, 'e'=>444, 'f'=>333, 'g'=>500, 'h'=>500, 'i'=>278, 'j'=>278, 'k'=>500, 'l'=>278, 'm'=>778,
8
+	'n'=>500, 'o'=>500, 'p'=>500, 'q'=>500, 'r'=>333, 's'=>389, 't'=>278, 'u'=>500, 'v'=>500, 'w'=>722, 'x'=>500, 'y'=>500, 'z'=>444, '{'=>480, '|'=>200, '}'=>480, '~'=>541, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500,
9
+	chr(132)=>444, chr(133)=>1000, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>556, chr(139)=>333, chr(140)=>889, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>444, chr(148)=>444, chr(149)=>350, chr(150)=>500, chr(151)=>1000, chr(152)=>333, chr(153)=>980,
10
+	chr(154)=>389, chr(155)=>333, chr(156)=>722, chr(157)=>350, chr(158)=>444, chr(159)=>722, chr(160)=>250, chr(161)=>333, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>200, chr(167)=>500, chr(168)=>333, chr(169)=>760, chr(170)=>276, chr(171)=>500, chr(172)=>564, chr(173)=>333, chr(174)=>760, chr(175)=>333,
11
+	chr(176)=>400, chr(177)=>564, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>500, chr(182)=>453, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>310, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>444, chr(192)=>722, chr(193)=>722, chr(194)=>722, chr(195)=>722, chr(196)=>722, chr(197)=>722,
12
+	chr(198)=>889, chr(199)=>667, chr(200)=>611, chr(201)=>611, chr(202)=>611, chr(203)=>611, chr(204)=>333, chr(205)=>333, chr(206)=>333, chr(207)=>333, chr(208)=>722, chr(209)=>722, chr(210)=>722, chr(211)=>722, chr(212)=>722, chr(213)=>722, chr(214)=>722, chr(215)=>564, chr(216)=>722, chr(217)=>722, chr(218)=>722, chr(219)=>722,
13
+	chr(220)=>722, chr(221)=>722, chr(222)=>556, chr(223)=>500, chr(224)=>444, chr(225)=>444, chr(226)=>444, chr(227)=>444, chr(228)=>444, chr(229)=>444, chr(230)=>667, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>500,
14
+	chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>564, chr(248)=>500, chr(249)=>500, chr(250)=>500, chr(251)=>500, chr(252)=>500, chr(253)=>500, chr(254)=>500, chr(255)=>500);
15 15
 ?>
Please login to merge, or discard this patch.
includes/librairies/pdf/font/timesb.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
2
-$fpdf_charwidths['timesB']=array(
3
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
4
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
5
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
6
-	'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
7
-	'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
8
-	'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
9
-	chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
10
-	chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
11
-	chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
12
-	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
13
-	chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
14
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
1
+<?php if (!defined('ABSPATH')) exit;
2
+$fpdf_charwidths['timesB'] = array(
3
+	chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250,
4
+	chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>555, '#'=>500, '$'=>500, '%'=>1000, '&'=>833, '\''=>278, '('=>333, ')'=>333, '*'=>500, '+'=>570,
5
+	','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>333, ';'=>333, '<'=>570, '='=>570, '>'=>570, '?'=>500, '@'=>930, 'A'=>722,
6
+	'B'=>667, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>778, 'I'=>389, 'J'=>500, 'K'=>778, 'L'=>667, 'M'=>944, 'N'=>722, 'O'=>778, 'P'=>611, 'Q'=>778, 'R'=>722, 'S'=>556, 'T'=>667, 'U'=>722, 'V'=>722, 'W'=>1000,
7
+	'X'=>722, 'Y'=>722, 'Z'=>667, '['=>333, '\\'=>278, ']'=>333, '^'=>581, '_'=>500, '`'=>333, 'a'=>500, 'b'=>556, 'c'=>444, 'd'=>556, 'e'=>444, 'f'=>333, 'g'=>500, 'h'=>556, 'i'=>278, 'j'=>333, 'k'=>556, 'l'=>278, 'm'=>833,
8
+	'n'=>556, 'o'=>500, 'p'=>556, 'q'=>556, 'r'=>444, 's'=>389, 't'=>333, 'u'=>556, 'v'=>500, 'w'=>722, 'x'=>500, 'y'=>500, 'z'=>444, '{'=>394, '|'=>220, '}'=>394, '~'=>520, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500,
9
+	chr(132)=>500, chr(133)=>1000, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>556, chr(139)=>333, chr(140)=>1000, chr(141)=>350, chr(142)=>667, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>500, chr(148)=>500, chr(149)=>350, chr(150)=>500, chr(151)=>1000, chr(152)=>333, chr(153)=>1000,
10
+	chr(154)=>389, chr(155)=>333, chr(156)=>722, chr(157)=>350, chr(158)=>444, chr(159)=>722, chr(160)=>250, chr(161)=>333, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>220, chr(167)=>500, chr(168)=>333, chr(169)=>747, chr(170)=>300, chr(171)=>500, chr(172)=>570, chr(173)=>333, chr(174)=>747, chr(175)=>333,
11
+	chr(176)=>400, chr(177)=>570, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>556, chr(182)=>540, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>330, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>500, chr(192)=>722, chr(193)=>722, chr(194)=>722, chr(195)=>722, chr(196)=>722, chr(197)=>722,
12
+	chr(198)=>1000, chr(199)=>722, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>389, chr(205)=>389, chr(206)=>389, chr(207)=>389, chr(208)=>722, chr(209)=>722, chr(210)=>778, chr(211)=>778, chr(212)=>778, chr(213)=>778, chr(214)=>778, chr(215)=>570, chr(216)=>778, chr(217)=>722, chr(218)=>722, chr(219)=>722,
13
+	chr(220)=>722, chr(221)=>722, chr(222)=>611, chr(223)=>556, chr(224)=>500, chr(225)=>500, chr(226)=>500, chr(227)=>500, chr(228)=>500, chr(229)=>500, chr(230)=>722, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>556,
14
+	chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>570, chr(248)=>500, chr(249)=>556, chr(250)=>556, chr(251)=>556, chr(252)=>556, chr(253)=>500, chr(254)=>556, chr(255)=>500);
15 15
 ?>
Please login to merge, or discard this patch.
includes/librairies/pdf/font/helvetica.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
2
-$fpdf_charwidths['helvetica']=array(
3
-	chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
4
-	chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
5
-	','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
6
-	'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
7
-	'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
8
-	'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
9
-	chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
10
-	chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
11
-	chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
12
-	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
13
-	chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
14
-	chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
1
+<?php if (!defined('ABSPATH')) exit;
2
+$fpdf_charwidths['helvetica'] = array(
3
+	chr(0)=>278, chr(1)=>278, chr(2)=>278, chr(3)=>278, chr(4)=>278, chr(5)=>278, chr(6)=>278, chr(7)=>278, chr(8)=>278, chr(9)=>278, chr(10)=>278, chr(11)=>278, chr(12)=>278, chr(13)=>278, chr(14)=>278, chr(15)=>278, chr(16)=>278, chr(17)=>278, chr(18)=>278, chr(19)=>278, chr(20)=>278, chr(21)=>278,
4
+	chr(22)=>278, chr(23)=>278, chr(24)=>278, chr(25)=>278, chr(26)=>278, chr(27)=>278, chr(28)=>278, chr(29)=>278, chr(30)=>278, chr(31)=>278, ' '=>278, '!'=>278, '"'=>355, '#'=>556, '$'=>556, '%'=>889, '&'=>667, '\''=>191, '('=>333, ')'=>333, '*'=>389, '+'=>584,
5
+	','=>278, '-'=>333, '.'=>278, '/'=>278, '0'=>556, '1'=>556, '2'=>556, '3'=>556, '4'=>556, '5'=>556, '6'=>556, '7'=>556, '8'=>556, '9'=>556, ':'=>278, ';'=>278, '<'=>584, '='=>584, '>'=>584, '?'=>556, '@'=>1015, 'A'=>667,
6
+	'B'=>667, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>722, 'I'=>278, 'J'=>500, 'K'=>667, 'L'=>556, 'M'=>833, 'N'=>722, 'O'=>778, 'P'=>667, 'Q'=>778, 'R'=>722, 'S'=>667, 'T'=>611, 'U'=>722, 'V'=>667, 'W'=>944,
7
+	'X'=>667, 'Y'=>667, 'Z'=>611, '['=>278, '\\'=>278, ']'=>278, '^'=>469, '_'=>556, '`'=>333, 'a'=>556, 'b'=>556, 'c'=>500, 'd'=>556, 'e'=>556, 'f'=>278, 'g'=>556, 'h'=>556, 'i'=>222, 'j'=>222, 'k'=>500, 'l'=>222, 'm'=>833,
8
+	'n'=>556, 'o'=>556, 'p'=>556, 'q'=>556, 'r'=>333, 's'=>500, 't'=>278, 'u'=>556, 'v'=>500, 'w'=>722, 'x'=>500, 'y'=>500, 'z'=>500, '{'=>334, '|'=>260, '}'=>334, '~'=>584, chr(127)=>350, chr(128)=>556, chr(129)=>350, chr(130)=>222, chr(131)=>556,
9
+	chr(132)=>333, chr(133)=>1000, chr(134)=>556, chr(135)=>556, chr(136)=>333, chr(137)=>1000, chr(138)=>667, chr(139)=>333, chr(140)=>1000, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>222, chr(146)=>222, chr(147)=>333, chr(148)=>333, chr(149)=>350, chr(150)=>556, chr(151)=>1000, chr(152)=>333, chr(153)=>1000,
10
+	chr(154)=>500, chr(155)=>333, chr(156)=>944, chr(157)=>350, chr(158)=>500, chr(159)=>667, chr(160)=>278, chr(161)=>333, chr(162)=>556, chr(163)=>556, chr(164)=>556, chr(165)=>556, chr(166)=>260, chr(167)=>556, chr(168)=>333, chr(169)=>737, chr(170)=>370, chr(171)=>556, chr(172)=>584, chr(173)=>333, chr(174)=>737, chr(175)=>333,
11
+	chr(176)=>400, chr(177)=>584, chr(178)=>333, chr(179)=>333, chr(180)=>333, chr(181)=>556, chr(182)=>537, chr(183)=>278, chr(184)=>333, chr(185)=>333, chr(186)=>365, chr(187)=>556, chr(188)=>834, chr(189)=>834, chr(190)=>834, chr(191)=>611, chr(192)=>667, chr(193)=>667, chr(194)=>667, chr(195)=>667, chr(196)=>667, chr(197)=>667,
12
+	chr(198)=>1000, chr(199)=>722, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>278, chr(205)=>278, chr(206)=>278, chr(207)=>278, chr(208)=>722, chr(209)=>722, chr(210)=>778, chr(211)=>778, chr(212)=>778, chr(213)=>778, chr(214)=>778, chr(215)=>584, chr(216)=>778, chr(217)=>722, chr(218)=>722, chr(219)=>722,
13
+	chr(220)=>722, chr(221)=>667, chr(222)=>667, chr(223)=>611, chr(224)=>556, chr(225)=>556, chr(226)=>556, chr(227)=>556, chr(228)=>556, chr(229)=>556, chr(230)=>889, chr(231)=>500, chr(232)=>556, chr(233)=>556, chr(234)=>556, chr(235)=>556, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>556, chr(241)=>556,
14
+	chr(242)=>556, chr(243)=>556, chr(244)=>556, chr(245)=>556, chr(246)=>556, chr(247)=>584, chr(248)=>611, chr(249)=>556, chr(250)=>556, chr(251)=>556, chr(252)=>556, chr(253)=>500, chr(254)=>556, chr(255)=>500);
15 15
 ?>
Please login to merge, or discard this patch.
includes/librairies/pdf/font/timesi.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
2
-$fpdf_charwidths['timesI']=array(
3
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
4
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,
5
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,
6
-	'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,
7
-	'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,
8
-	'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
9
-	chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,
10
-	chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,
11
-	chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,
12
-	chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
13
-	chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
14
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
1
+<?php if (!defined('ABSPATH')) exit;
2
+$fpdf_charwidths['timesI'] = array(
3
+	chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250,
4
+	chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>420, '#'=>500, '$'=>500, '%'=>833, '&'=>778, '\''=>214, '('=>333, ')'=>333, '*'=>500, '+'=>675,
5
+	','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>333, ';'=>333, '<'=>675, '='=>675, '>'=>675, '?'=>500, '@'=>920, 'A'=>611,
6
+	'B'=>611, 'C'=>667, 'D'=>722, 'E'=>611, 'F'=>611, 'G'=>722, 'H'=>722, 'I'=>333, 'J'=>444, 'K'=>667, 'L'=>556, 'M'=>833, 'N'=>667, 'O'=>722, 'P'=>611, 'Q'=>722, 'R'=>611, 'S'=>500, 'T'=>556, 'U'=>722, 'V'=>611, 'W'=>833,
7
+	'X'=>611, 'Y'=>556, 'Z'=>556, '['=>389, '\\'=>278, ']'=>389, '^'=>422, '_'=>500, '`'=>333, 'a'=>500, 'b'=>500, 'c'=>444, 'd'=>500, 'e'=>444, 'f'=>278, 'g'=>500, 'h'=>500, 'i'=>278, 'j'=>278, 'k'=>444, 'l'=>278, 'm'=>722,
8
+	'n'=>500, 'o'=>500, 'p'=>500, 'q'=>500, 'r'=>389, 's'=>389, 't'=>278, 'u'=>500, 'v'=>444, 'w'=>667, 'x'=>444, 'y'=>444, 'z'=>389, '{'=>400, '|'=>275, '}'=>400, '~'=>541, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500,
9
+	chr(132)=>556, chr(133)=>889, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>500, chr(139)=>333, chr(140)=>944, chr(141)=>350, chr(142)=>556, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>556, chr(148)=>556, chr(149)=>350, chr(150)=>500, chr(151)=>889, chr(152)=>333, chr(153)=>980,
10
+	chr(154)=>389, chr(155)=>333, chr(156)=>667, chr(157)=>350, chr(158)=>389, chr(159)=>556, chr(160)=>250, chr(161)=>389, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>275, chr(167)=>500, chr(168)=>333, chr(169)=>760, chr(170)=>276, chr(171)=>500, chr(172)=>675, chr(173)=>333, chr(174)=>760, chr(175)=>333,
11
+	chr(176)=>400, chr(177)=>675, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>500, chr(182)=>523, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>310, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>500, chr(192)=>611, chr(193)=>611, chr(194)=>611, chr(195)=>611, chr(196)=>611, chr(197)=>611,
12
+	chr(198)=>889, chr(199)=>667, chr(200)=>611, chr(201)=>611, chr(202)=>611, chr(203)=>611, chr(204)=>333, chr(205)=>333, chr(206)=>333, chr(207)=>333, chr(208)=>722, chr(209)=>667, chr(210)=>722, chr(211)=>722, chr(212)=>722, chr(213)=>722, chr(214)=>722, chr(215)=>675, chr(216)=>722, chr(217)=>722, chr(218)=>722, chr(219)=>722,
13
+	chr(220)=>722, chr(221)=>556, chr(222)=>611, chr(223)=>500, chr(224)=>500, chr(225)=>500, chr(226)=>500, chr(227)=>500, chr(228)=>500, chr(229)=>500, chr(230)=>667, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>500,
14
+	chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>675, chr(248)=>500, chr(249)=>500, chr(250)=>500, chr(251)=>500, chr(252)=>500, chr(253)=>444, chr(254)=>500, chr(255)=>444);
15 15
 ?>
Please login to merge, or discard this patch.