Advertisement
Guest User

Untitled

a guest
Feb 9th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.48 KB | None | 0 0
  1.  
  2. Line 33: missing space after comma
  3. $allowed_namespace = array('AsposeApp','Product','Folder','Converter','Utils','Extractor');
  4.  
  5. Line 36: Control statements should have one space between the control keyword and opening parenthesis
  6. if( in_array( $arr['3'] , $allowed_namespace)){
  7.  
  8. Line 36: use a space between the closing parenthesis and the open bracket
  9. if( in_array( $arr['3'] , $allowed_namespace)){
  10.  
  11. Line 37: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  12. include 'Aspose_Cloud_SDK_For_PHP-master/src/'. $arr[0] . '/' . $arr[1] . '/' .$arr[2] . '/' . $arr[3] . '.php';
  13.  
  14. Line 47: curly braces { should end a line, not start one
  15. {
  16.  
  17. Line 103: Control statements should have one space between the control keyword and opening parenthesis
  18. if(empty(AsposeApp::$appSID) || empty(AsposeApp::$appKey)) {
  19.  
  20. Line 105: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  21. $jsonArray['success'] = false;
  22.  
  23. Line 122: Control statements should have one space between the control keyword and opening parenthesis
  24. if(isset($_POST['existing_file']) && !empty($_POST['existing_file'])) {
  25.  
  26. Line 128: Use uppercase for PHP consLine 33: missing space after comma
  27. $allowed_namespace = array('AsposeApp','Product','Folder','Converter','Utils','Extractor');
  28.  
  29. Line 36: Control statements should have one space between the control keyword and opening parenthesis
  30. if( in_array( $arr['3'] , $allowed_namespace)){
  31.  
  32. Line 36: use a space between the closing parenthesis and the open bracket
  33. if( in_array( $arr['3'] , $allowed_namespace)){
  34.  
  35. Line 37: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  36. include 'Aspose_Cloud_SDK_For_PHP-master/src/'. $arr[0] . '/' . $arr[1] . '/' .$arr[2] . '/' . $arr[3] . '.php';
  37.  
  38. Line 47: curly braces { should end a line, not start one
  39. {
  40.  
  41. Line 103: Control statements should have one space between the control keyword and opening parenthesis
  42. if(empty(AsposeApp::$appSID) || empty(AsposeApp::$appKey)) {
  43.  
  44. Line 105: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  45. $jsonArray['success'] = false;
  46.  
  47. Line 122: Control statements should have one space between the control keyword and opening parenthesis
  48. if(isset($_POST['existing_file']) && !empty($_POST['existing_file'])) {
  49.  
  50. Line 128: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  51. $jsonArray['success'] = true;
  52.  
  53. Line 133: else statements should begin on a new line
  54. } else if (!empty($_FILES)) { // In case a new file is uploaded
  55.  
  56. Line 133: Use "elseif" in place of "else if"
  57. } else if (!empty($_FILES)) { // In case a new file is uploaded
  58.  
  59. Line 136: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  60. $targetFile = rtrim($targetPath,'/') . '/' . time() . '_TT_' . $_FILES['filePath']['name'];
  61.  
  62. Line 136: missing space after comma
  63. $targetFile = rtrim($targetPath,'/') . '/' . time() . '_TT_' . $_FILES['filePath']['name'];
  64.  
  65. Line 139: missing space after comma
  66. $fileTypes = array('doc','docx'); // File extensions
  67.  
  68. Line 146: missing space after comma
  69. $uploadpath = str_replace('/','\\',$uploadpath);
  70.  
  71. Line 151: Control statements should have one space between the control keyword and opening parenthesis
  72. if(!isset($_REQUEST['aspose'])) {
  73.  
  74. Line 153: missing space after comma
  75. $uploadpath = str_replace("\\","/", $uploadpath);
  76.  
  77. Line 157: Use an indent of 2 spaces, with no tabs
  78.  
  79.  
  80. Line 158: Use an indent of 2 spaces, with no tabs
  81. $targetFileDetails = pathinfo($targetFile);
  82.  
  83. Line 159: Use an indent of 2 spaces, with no tabs
  84.  
  85.  
  86. Line 166: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  87. $jsonArray['success'] = true;
  88.  
  89. Line 171: else statements should begin on a new line
  90. } else {
  91.  
  92. Line 172: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  93. $jsonArray['success'] = false;
  94.  
  95. Line 185: Functions should be called with no spaces between the function name and opening parentheses
  96. function aspose_doc_importer_menu () {
  97.  
  98. Line 244: use a space between the closing parenthesis and the open bracket
  99. function _aspose_doc_importer_form_submit_special_fuction_name($form, &$form_state){
  100.  
  101. Line 308: Control statements should have one space between the control keyword and opening parenthesis
  102. if(empty(AsposeApp::$appSID) || empty(AsposeApp::$appKey)) {
  103.  
  104. Line 318: Control statements should have one space between the control keyword and opening parenthesis
  105. if(isset($_REQUEST['aspose_folder']) && !empty($_REQUEST['aspose_folder'])) {
  106.  
  107. Line 320: else statements should begin on a new line
  108. } else {
  109.  
  110. Line 339: Control statements should have one space between the control keyword and opening parenthesis
  111. if(is_array($files)) {
  112.  
  113. Line 340: Control statements should have one space between the control keyword and opening parenthesis
  114. foreach($files as $file){
  115.  
  116. Line 340: use a space between the closing parenthesis and the open bracket
  117. foreach($files as $file){
  118.  
  119. Line 341: Control statements should have one space between the control keyword and opening parenthesis
  120. if($file->IsFolder == '1'){
  121.  
  122. Line 341: use a space between the closing parenthesis and the open bracket
  123. if($file->IsFolder == '1'){
  124.  
  125. Line 342: missing space after comma
  126. array_push($asposeFolders,$file->Name);
  127.  
  128. Line 343: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  129. $options .= '<option value="'.$file->Name.'">'.$file->Name.'</option>';
  130.  
  131. Line 344: else statements should begin on a new line
  132. } else {
  133.  
  134. Line 345: missing space after comma
  135. array_push($asposeFiles,$file->Name);
  136.  
  137. Line 346: Control statements should have one space between the control keyword and opening parenthesis
  138. if($aspose_folder !=''){
  139.  
  140. Line 346: use a space between the closing parenthesis and the open bracket
  141. if($aspose_folder !=''){
  142.  
  143. Line 351: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  144. <td> <input type="radio" name="aspose_filename" value="'.$aspose_folder . $file->Name.'" /> </td>
  145.  
  146. Line 352: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  147. <td> '.$file->Name.' </td>
  148.  
  149. Line 358: Control statements should have one space between the control keyword and opening parenthesis
  150. if(is_array($asposeFolders) && count($asposeFolders) > 0) {
  151.  
  152. Line 362: else statements should begin on a new line
  153. } else {
  154.  
  155. Line 366: Control statements should have one space between the control keyword and opening parenthesis
  156. if(count($asposeFiles) < 1){
  157.  
  158. Line 366: use a space between the closing parenthesis and the open bracket
  159. if(count($asposeFiles) < 1){
  160.  
  161. Line 375: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  162. <td>'.$select_aspose_folder.'</td>
  163.  
  164. Line 380: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  165. '.$aspose_files_rows.'tants, e.g. NULL, TRUE, FALSE
  166. $jsonArray['success'] = true;
  167.  
  168. Line 133: else statements should begin on a new line
  169. } else if (!empty($_FILES)) { // In case a new file is uploaded
  170.  
  171. Line 133: Use "elseif" in place of "else if"
  172. } else if (!empty($_FILES)) { // In case a new file is uploaded
  173.  
  174. Line 136: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  175. $targetFile = rtrim($targetPath,'/') . '/' . time() . '_TT_' . $_FILES['filePath']['name'];
  176.  
  177. Line 136: missing space after comma
  178. $targetFile = rtrim($targetPath,'/') . '/' . time() . '_TT_' . $_FILES['filePath']['name'];
  179.  
  180. Line 139: missing space after comma
  181. $fileTypes = array('doc','docx'); // File extensions
  182.  
  183. Line 146: missing space after comma
  184. $uploadpath = str_replace('/','\\',$uploadpath);
  185.  
  186. Line 151: Control statements should have one space between the control keyword and opening parenthesis
  187. if(!isset($_REQUEST['aspose'])) {
  188.  
  189. Line 153: missing space after comma
  190. $uploadpath = str_replace("\\","/", $uploadpath);
  191.  
  192. Line 157: Use an indent of 2 spaces, with no tabs
  193.  
  194.  
  195. Line 158: Use an indent of 2 spaces, with no tabs
  196. $targetFileDetails = pathinfo($targetFile);
  197.  
  198. Line 159: Use an indent of 2 spaces, with no tabs
  199.  
  200.  
  201. Line 166: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  202. $jsonArray['success'] = true;
  203.  
  204. Line 171: else statements should begin on a new line
  205. } else {
  206.  
  207. Line 172: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  208. $jsonArray['success'] = false;
  209.  
  210. Line 185: Functions should be called with no spaces between the function name and opening parentheses
  211. function aspose_doc_importer_menu () {
  212.  
  213. Line 244: use a space between the closing parenthesis and the open bracket
  214. function _aspose_doc_importer_form_submit_special_fuction_name($form, &$form_state){
  215.  
  216. Line 308: Control statements should have one space between the control keyword and opening parenthesis
  217. if(empty(AsposeApp::$appSID) || empty(AsposeApp::$appKey)) {
  218.  
  219. Line 318: Control statements should have one space between the control keyword and opening parenthesis
  220. if(isset($_REQUEST['aspose_folder']) && !empty($_REQUEST['aspose_folder'])) {
  221.  
  222. Line 320: else statements should begin on a new line
  223. } else {
  224.  
  225. Line 339: Control statements should have one space between the control keyword and opening parenthesis
  226. if(is_array($files)) {
  227.  
  228. Line 340: Control statements should have one space between the control keyword and opening parenthesis
  229. foreach($files as $file){
  230.  
  231. Line 340: use a space between the closing parenthesis and the open bracket
  232. foreach($files as $file){
  233.  
  234. Line 341: Control statements should have one space between the control keyword and opening parenthesis
  235. if($file->IsFolder == '1'){
  236.  
  237. Line 341: use a space between the closing parenthesis and the open bracket
  238. if($file->IsFolder == '1'){
  239.  
  240. Line 342: missing space after comma
  241. array_push($asposeFolders,$file->Name);
  242.  
  243. Line 343: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  244. $options .= '<option value="'.$file->Name.'">'.$file->Name.'</option>';
  245.  
  246. Line 344: else statements should begin on a new line
  247. } else {
  248.  
  249. Line 345: missing space after comma
  250. array_push($asposeFiles,$file->Name);
  251.  
  252. Line 346: Control statements should have one space between the control keyword and opening parenthesis
  253. if($aspose_folder !=''){
  254.  
  255. Line 346: use a space between the closing parenthesis and the open bracket
  256. if($aspose_folder !=''){
  257.  
  258. Line 351: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  259. <td> <input type="radio" name="aspose_filename" value="'.$aspose_folder . $file->Name.'" /> </td>
  260.  
  261. Line 352: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  262. <td> '.$file->Name.' </td>
  263.  
  264. Line 358: Control statements should have one space between the control keyword and opening parenthesis
  265. if(is_array($asposeFolders) && count($asposeFolders) > 0) {
  266.  
  267. Line 362: else statements should begin on a new line
  268. } else {
  269. Line 33: missing space after comma
  270. $allowed_namespace = array('AsposeApp','Product','Folder','Converter','Utils','Extractor');
  271.  
  272. Line 36: Control statements should have one space between the control keyword and opening parenthesis
  273. if( in_array( $arr['3'] , $allowed_namespace)){
  274.  
  275. Line 36: use a space between the closing parenthesis and the open bracket
  276. if( in_array( $arr['3'] , $allowed_namespace)){
  277.  
  278. Line 37: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  279. include 'Aspose_Cloud_SDK_For_PHP-master/src/'. $arr[0] . '/' . $arr[1] . '/' .$arr[2] . '/' . $arr[3] . '.php';
  280.  
  281. Line 47: curly braces { should end a line, not start one
  282. {
  283.  
  284. Line 103: Control statements should have one space between the control keyword and opening parenthesis
  285. if(empty(AsposeApp::$appSID) || empty(AsposeApp::$appKey)) {
  286.  
  287. Line 105: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  288. $jsonArray['success'] = false;
  289.  
  290. Line 122: Control statements should have one space between the control keyword and opening parenthesis
  291. if(isset($_POST['existing_file']) && !empty($_POST['existing_file'])) {
  292.  
  293. Line 128: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  294. $jsonArray['success'] = true;
  295.  
  296. Line 133: else statements should begin on a new line
  297. } else if (!empty($_FILES)) { // In case a new file is uploaded
  298.  
  299. Line 133: Use "elseif" in place of "else if"
  300. } else if (!empty($_FILES)) { // In case a new file is uploaded
  301.  
  302. Line 136: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  303. $targetFile = rtrim($targetPath,'/') . '/' . time() . '_TT_' . $_FILES['filePath']['name'];
  304.  
  305. Line 136: missing space after comma
  306. $targetFile = rtrim($targetPath,'/') . '/' . time() . '_TT_' . $_FILES['filePath']['name'];
  307.  
  308. Line 139: missing space after comma
  309. $fileTypes = array('doc','docx'); // File extensions
  310.  
  311. Line 146: missing space after comma
  312. $uploadpath = str_replace('/','\\',$uploadpath);
  313.  
  314. Line 151: Control statements should have one space between the control keyword and opening parenthesis
  315. if(!isset($_REQUEST['aspose'])) {
  316.  
  317. Line 153: missing space after comma
  318. $uploadpath = str_replace("\\","/", $uploadpath);
  319.  
  320. Line 157: Use an indent of 2 spaces, with no tabs
  321.  
  322.  
  323. Line 158: Use an indent of 2 spaces, with no tabs
  324. $targetFileDetails = pathinfo($targetFile);
  325.  
  326. Line 159: Use an indent of 2 spaces, with no tabs
  327.  
  328.  
  329. Line 166: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  330. $jsonArray['success'] = true;
  331.  
  332. Line 171: else statements should begin on a new line
  333. } else {
  334.  
  335. Line 172: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
  336. $jsonArray['success'] = false;
  337.  
  338. Line 185: Functions should be called with no spaces between the function name and opening parentheses
  339. function aspose_doc_importer_menu () {
  340.  
  341. Line 244: use a space between the closing parenthesis and the open bracket
  342. function _aspose_doc_importer_form_submit_special_fuction_name($form, &$form_state){
  343.  
  344. Line 308: Control statements should have one space between the control keyword and opening parenthesis
  345. if(empty(AsposeApp::$appSID) || empty(AsposeApp::$appKey)) {
  346.  
  347. Line 318: Control statements should have one space between the control keyword and opening parenthesis
  348. if(isset($_REQUEST['aspose_folder']) && !empty($_REQUEST['aspose_folder'])) {
  349.  
  350. Line 320: else statements should begin on a new line
  351. } else {
  352.  
  353. Line 339: Control statements should have one space between the control keyword and opening parenthesis
  354. if(is_array($files)) {
  355.  
  356. Line 340: Control statements should have one space between the control keyword and opening parenthesis
  357. foreach($files as $file){
  358.  
  359. Line 340: use a space between the closing parenthesis and the open bracket
  360. foreach($files as $file){
  361.  
  362. Line 341: Control statements should have one space between the control keyword and opening parenthesis
  363. if($file->IsFolder == '1'){
  364.  
  365. Line 341: use a space between the closing parenthesis and the open bracket
  366. if($file->IsFolder == '1'){
  367.  
  368. Line 342: missing space after comma
  369. array_push($asposeFolders,$file->Name);
  370.  
  371. Line 343: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  372. $options .= '<option value="'.$file->Name.'">'.$file->Name.'</option>';
  373.  
  374. Line 344: else statements should begin on a new line
  375. } else {
  376.  
  377. Line 345: missing space after comma
  378. array_push($asposeFiles,$file->Name);
  379.  
  380. Line 346: Control statements should have one space between the control keyword and opening parenthesis
  381. if($aspose_folder !=''){
  382.  
  383. Line 346: use a space between the closing parenthesis and the open bracket
  384. if($aspose_folder !=''){
  385.  
  386. Line 351: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  387. <td> <input type="radio" name="aspose_filename" value="'.$aspose_folder . $file->Name.'" /> </td>
  388.  
  389. Line 352: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  390. <td> '.$file->Name.' </td>
  391.  
  392. Line 358: Control statements should have one space between the control keyword and opening parenthesis
  393. if(is_array($asposeFolders) && count($asposeFolders) > 0) {
  394.  
  395. Line 362: else statements should begin on a new line
  396. } else {
  397.  
  398. Line 366: Control statements should have one space between the control keyword and opening parenthesis
  399. if(count($asposeFiles) < 1){
  400.  
  401. Line 366: use a space between the closing parenthesis and the open bracket
  402. if(count($asposeFiles) < 1){
  403.  
  404. Line 375: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  405. <td>'.$select_aspose_folder.'</td>
  406.  
  407. Line 380: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  408. '.$aspose_files_rows.'
  409. Line 366: Control statements should have one space between the control keyword and opening parenthesis
  410. if(count($asposeFiles) < 1){
  411.  
  412. Line 366: use a space between the closing parenthesis and the open bracket
  413. if(count($asposeFiles) < 1){
  414.  
  415. Line 375: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  416. <td>'.$select_aspose_folder.'</td>
  417.  
  418. Line 380: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
  419. '.$aspose_files_rows.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement