Completed
Push — developer ( e7ef61...437bc9 )
by Błażej
353:55 queued 313:46
created
include/recaptcha/recaptchalib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 	$http_request .= $req;
78 78
 
79 79
 	$response = '';
80
-	if (false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) )) {
80
+	if (false == ($fs = @fsockopen($host, $port, $errno, $errstr, 10))) {
81 81
 		die('Could not open socket');
82 82
 	}
83 83
 
Please login to merge, or discard this patch.
include/simplehtmldom/simple_html_dom.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 	{
225 225
 	// I am SURE that this doesn't work properly.
226 226
 	// It fails to unset the current node from it's current parents nodes or children list first.
227
-	if($parent !== null)
227
+	if ($parent !== null)
228 228
 	{
229 229
 	$this->parent = $parent;
230 230
 	$this->parent->nodes[] = $this;
@@ -1427,7 +1427,7 @@  discard block
 block discarded – undo
1427 1427
 		$node->tag = 'unknown';
1428 1428
 	}
1429 1429
 	if ($this->char === '>')
1430
-		$node->_[HDOM_INFO_TEXT].='>';
1430
+		$node->_[HDOM_INFO_TEXT] .= '>';
1431 1431
 	$this->link_nodes($node, true);
1432 1432
 	$this->char = ( ++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1433 1433
 	return true;
@@ -1450,7 +1450,7 @@  discard block
 block discarded – undo
1450 1450
 	}
1451 1451
 
1452 1452
 	if ($this->char === '>')
1453
-		$node->_[HDOM_INFO_TEXT].='>';
1453
+		$node->_[HDOM_INFO_TEXT] .= '>';
1454 1454
 	$this->link_nodes($node, false);
1455 1455
 	$this->char = ( ++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1456 1456
 	return true;
Please login to merge, or discard this patch.
include/utils/EmailTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				$moduleTableIndexList = $meta->getEntityTableIndexList();
121 121
 				foreach ($tableList as $index => $tableName) {
122 122
 					if ($tableName != $tableList[0]) {
123
-						$sql .=' INNER JOIN ' . $tableName . ' ON ' . $tableList[0] . '.' .
123
+						$sql .= ' INNER JOIN ' . $tableName . ' ON ' . $tableList[0] . '.' .
124 124
 							$moduleTableIndexList[$tableList[0]] . '=' . $tableName . '.' .
125 125
 							$moduleTableIndexList[$tableName];
126 126
 					}
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 				//If module is Leads and if you are not selected any leads fields then query failure is happening.
129 129
 				//By default we are checking where condition on base table.
130 130
 				if ($module == 'Leads' && !in_array('vtiger_leaddetails', $tableList)) {
131
-					$sql .=' INNER JOIN vtiger_leaddetails ON vtiger_leaddetails.leadid = vtiger_crmentity.crmid';
131
+					$sql .= ' INNER JOIN vtiger_leaddetails ON vtiger_leaddetails.leadid = vtiger_crmentity.crmid';
132 132
 				}
133 133
 
134 134
 				$sql .= ' WHERE';
Please login to merge, or discard this patch.
include/utils/utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1401,7 +1401,7 @@
 block discarded – undo
1401 1401
 function isRecordExists($recordId, $cache = true)
1402 1402
 {
1403 1403
 	$recordMetaData = vtlib\Functions::getCRMRecordMetadata($recordId);
1404
-	return (isset($recordMetaData) && $recordMetaData['deleted'] == 0 ) ? true : false;
1404
+	return (isset($recordMetaData) && $recordMetaData['deleted'] == 0) ? true : false;
1405 1405
 }
1406 1406
 
1407 1407
 /** Function to set date values compatible to database (YY_MM_DD)
Please login to merge, or discard this patch.
include/Webservices/VtigerActorOperation.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -270,8 +270,7 @@
 block discarded – undo
270 270
 			foreach ($moduleFields as $fieldName => $webserviceField) {
271 271
 				array_push($fields, $this->getDescribeFieldArray($webserviceField));
272 272
 			}
273
-			$label = ($app_strings[$this->meta->getObectIndexColumn()]) ? $app_strings[$this->meta->getObectIndexColumn()] :
274
-				$this->meta->getObectIndexColumn();
273
+			$label = ($app_strings[$this->meta->getObectIndexColumn()]) ? $app_strings[$this->meta->getObectIndexColumn()] : $this->meta->getObectIndexColumn();
275 274
 			$this->moduleFields = $fields;
276 275
 		}
277 276
 		return $this->moduleFields;
Please login to merge, or discard this patch.
include/Webservices/QueryRelated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 		if (!empty($filterClause)) {
72 72
 			$query .= " " . $filterClause;
73 73
 		}
74
-		$query.=";";
74
+		$query .= ";";
75 75
 		$relatedRecords = vtws_query($query, $user);
76 76
 	}
77 77
 
Please login to merge, or discard this patch.
include/Webservices/VTQL_Parser.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 {
90 90
 
91 91
 	public $stateno; /* The state-number */
92
-	public $major;   /* The major token value.  This is the code
92
+	public $major; /* The major token value.  This is the code
93 93
 	 * * number for the token at this stack level */
94 94
 	public $minor; /* The user-supplied minor token value.  This
95 95
 	 * * is the value of the token  */
@@ -663,17 +663,17 @@  discard block
 block discarded – undo
663 663
 	/**
664 664
 	 * @var int
665 665
 	 */
666
-	public $yyidx;  /* Index of top element in stack */
666
+	public $yyidx; /* Index of top element in stack */
667 667
 
668 668
 	/**
669 669
 	 * @var int
670 670
 	 */
671
-	public $yyerrcnt;  /* Shifts left before out of the error */
671
+	public $yyerrcnt; /* Shifts left before out of the error */
672 672
 
673 673
 	/**
674 674
 	 * @var array
675 675
 	 */
676
-	public $yystack = [];  /* The parser's stack */
676
+	public $yystack = []; /* The parser's stack */
677 677
 
678 678
 	/**
679 679
 	 * For tracing shifts, the names of all terminals and nonterminals
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
 			 * * which appear on the RHS of the rule, but which are not used
783 783
 			 * * inside the C code.
784 784
 			 */
785
-			default: break;   /* If no destructor action specified: do nothing */
785
+			default: break; /* If no destructor action specified: do nothing */
786 786
 		}
787 787
 	}
788 788
 
@@ -1608,7 +1608,7 @@  discard block
 block discarded – undo
1608 1608
 	{
1609 1609
 //        $yyact;            /* The parser action. */
1610 1610
 //        $yyendofinput;     /* True if we are at the end of input */
1611
-		$yyerrorhit = 0;   /* True if yymajor has invoked an error */
1611
+		$yyerrorhit = 0; /* True if yymajor has invoked an error */
1612 1612
 
1613 1613
 		/* (re)initialize the parser, if necessary */
1614 1614
 		if ($this->yyidx === null || $this->yyidx < 0) {
Please login to merge, or discard this patch.
libraries/Smarty/libs/Autoloader.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false
58 58
         ) {
59 59
             $registeredAutoLoadFunctions = spl_autoload_functions();
60
-            if (!isset($registeredAutoLoadFunctions[ 'spl_autoload' ])) {
60
+            if (!isset($registeredAutoLoadFunctions['spl_autoload'])) {
61 61
                 spl_autoload_register();
62 62
             }
63 63
         } else {
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
     public static function register($prepend = false)
74 74
     {
75 75
         self::$SMARTY_DIR = defined('SMARTY_DIR') ? SMARTY_DIR : dirname(__FILE__) . DIRECTORY_SEPARATOR;
76
-        self::$SMARTY_SYSPLUGINS_DIR = defined('SMARTY_SYSPLUGINS_DIR') ? SMARTY_SYSPLUGINS_DIR :
77
-            self::$SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR;
76
+        self::$SMARTY_SYSPLUGINS_DIR = defined('SMARTY_SYSPLUGINS_DIR') ? SMARTY_SYSPLUGINS_DIR : self::$SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR;
78 77
         if (version_compare(phpversion(), '5.3.0', '>=')) {
79 78
             spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
80 79
         } else {
@@ -96,8 +95,8 @@  discard block
 block discarded – undo
96 95
         $file = self::$SMARTY_SYSPLUGINS_DIR . $_class . '.php';
97 96
         if (is_file($file)) {
98 97
             include $file;
99
-        } else if (isset(self::$rootClasses[ $_class ])) {
100
-            $file = self::$SMARTY_DIR . self::$rootClasses[ $_class ];
98
+        } else if (isset(self::$rootClasses[$_class])) {
99
+            $file = self::$SMARTY_DIR . self::$rootClasses[$_class];
101 100
             if (is_file($file)) {
102 101
                 include $file;
103 102
             }
Please login to merge, or discard this patch.
libraries/Smarty/libs/plugins/function.html_options.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                         } else {
80 80
                             $_sel = smarty_function_escape_special_chars((string) $_sel);
81 81
                         }
82
-                        $selected[ $_sel ] = true;
82
+                        $selected[$_sel] = true;
83 83
                     }
84 84
                 } elseif (is_object($_val)) {
85 85
                     if (method_exists($_val, "__toString")) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
             case 'disabled':
100 100
             case 'readonly':
101
-                if (!empty($params[ 'strict' ])) {
101
+                if (!empty($params['strict'])) {
102 102
                     if (!is_scalar($_val)) {
103 103
                         trigger_error("html_options: $_key attribute must be a scalar, only boolean true or string '$_key' will actually add the attribute",
104 104
                                       E_USER_NOTICE);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         }
138 138
     } else {
139 139
         foreach ($values as $_i => $_key) {
140
-            $_val = isset($output[ $_i ]) ? $output[ $_i ] : '';
140
+            $_val = isset($output[$_i]) ? $output[$_i] : '';
141 141
             $_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected, $id, $class, $_idx);
142 142
         }
143 143
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $_key = smarty_function_escape_special_chars($key);
160 160
         $_html_result = '<option value="' . $_key . '"';
161 161
         if (is_array($selected)) {
162
-            if (isset($selected[ $_key ])) {
162
+            if (isset($selected[$_key])) {
163 163
                 $_html_result .= ' selected="selected"';
164 164
             }
165 165
         } elseif ($_key === $selected) {
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
             $value = smarty_function_escape_special_chars((string) $value);
181 181
         }
182 182
         $_html_result .= $_html_class . $_html_id . '>' . $value . '</option>' . "\n";
183
-        $idx ++;
183
+        $idx++;
184 184
     } else {
185 185
         $_idx = 0;
186 186
         $_html_result =
187 187
             smarty_function_html_options_optgroup($key, $value, $selected, !empty($id) ? ($id . '-' . $idx) : null,
188 188
                                                   $class, $_idx);
189
-        $idx ++;
189
+        $idx++;
190 190
     }
191 191
 
192 192
     return $_html_result;
Please login to merge, or discard this patch.