Fixes made according to the current code review status.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-03-23 23:28:40 -04:00
parent 79e5f46ae9
commit 8e1a15b7dd
23 changed files with 28 additions and 140 deletions

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:25 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,9 +1,4 @@
<?php
/**
*
*
*
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/22/16
* Time: 10:06 AM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -30,12 +30,12 @@ class ExportObjects
*/
public function objectList($objectsEnable = '')
{
$grid = [];
try {
$aObjectsEnable = explode('|', $objectsEnable);
foreach ($this->objectsList as $key => $val) {
$key++;
$grid[] = array(
'OBJECT_ID' => $key,
'OBJECT_ID' => $key+1,
'OBJECT_NAME' => $val,
'OBJECT_ACTION' => 1,
'OBJECT_ENABLE' => in_array(strtoupper(str_replace(' ', '',$val)), $aObjectsEnable)

View File

@@ -1,9 +1,4 @@
<?php
/**
*
*
*
*/
namespace ProcessMaker\BusinessModel\Migrator;
use ProcessMaker\Util;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:21 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;
@@ -60,7 +54,7 @@ class FilesMigrator implements Importable, Exportable
}
file_put_contents($filename, $file["file_content"]);
chmod($filename, 0775);
@chmod($filename, 0775);
}
}
}

View File

@@ -1,7 +1,4 @@
<?php
/**
* ProcessMaker.
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/22/16
* Time: 10:06 AM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:31 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/18/16
* Time: 10:34 AM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/18/16
* Time: 10:36 AM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:30 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/18/16
* Time: 3:13 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;
@@ -23,7 +17,7 @@ class PMXPublisher
$outputFile = $this->truncateName($filename);
file_put_contents($outputFile, $data);
chmod($outputFile, 0755);
@chmod($outputFile, 0755);
return basename($outputFile);
}

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:39 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/18/16
* Time: 10:28 AM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:36 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:38 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:38 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:28 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;
@@ -58,7 +52,7 @@ class TemplatesMigrator implements Importable, Exportable
}
file_put_contents($filename, $file["file_content"]);
chmod($filename, 0775);
@chmod($filename, 0775);
}
}
}

View File

@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: gustav
* Date: 3/17/16
* Time: 4:29 PM
*/
namespace ProcessMaker\BusinessModel\Migrator;