mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix CS
This commit is contained in:
@@ -33,7 +33,7 @@ class patch_303 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_303 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$this->update_users_log_datas($appbox);
|
||||
$this->update_users_search_datas($appbox);
|
||||
@@ -64,7 +64,7 @@ class patch_303 implements patchInterface
|
||||
*
|
||||
* @return patch_303
|
||||
*/
|
||||
function update_users_log_datas(appbox &$appbox)
|
||||
public function update_users_log_datas(appbox &$appbox)
|
||||
{
|
||||
$col = array('fonction', 'societe', 'activite', 'pays');
|
||||
|
||||
@@ -110,7 +110,7 @@ class patch_303 implements patchInterface
|
||||
*
|
||||
* @return patch_303
|
||||
*/
|
||||
function update_users_search_datas(appbox &$appbox)
|
||||
public function update_users_search_datas(appbox &$appbox)
|
||||
{
|
||||
foreach ($appbox->get_databoxes() as $databox) {
|
||||
$date_debut = '0000-00-00 00:00:00';
|
||||
|
@@ -33,7 +33,7 @@ class patch_304 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_304 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$sql = 'SELECT id FROM pref WHERE prop = "indexes"';
|
||||
$stmt = $databox->get_connection()->prepare($sql);
|
||||
|
@@ -33,7 +33,7 @@ class patch_305 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_305 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$sql = 'REPLACE INTO usr_settings
|
||||
(SELECT usr_id, "start_page_query" as prop, last_query as value
|
||||
|
@@ -33,7 +33,7 @@ class patch_306 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_306 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$dom = $databox->get_dom_structure();
|
||||
$xpath = $databox->get_xpath_structure();
|
||||
|
@@ -33,7 +33,7 @@ class patch_310 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_310 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$dom_structure = $databox->get_dom_structure();
|
||||
$sx_structure = $databox->get_sxml_structure();
|
||||
@@ -82,8 +82,7 @@ class patch_310 implements patchInterface
|
||||
$media = "audio";
|
||||
else
|
||||
$media = "image";
|
||||
}
|
||||
elseif ($type == 'video') {
|
||||
} elseif ($type == 'video') {
|
||||
if ($v->method == 'AnimGIF')
|
||||
$media = "gif";
|
||||
elseif ($v->method == 'JPG')
|
||||
|
@@ -33,7 +33,7 @@ class patch_3102 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_3102 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$base)
|
||||
public function apply(base &$base)
|
||||
{
|
||||
$conn = connection::getPDOConnection();
|
||||
|
||||
|
@@ -33,7 +33,7 @@ class patch_3103 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_3103 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$conn = $appbox->get_connection();
|
||||
|
||||
|
@@ -33,7 +33,7 @@ class patch_311 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_311 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$sql = 'UPDATE record SET jeton = '
|
||||
. (JETON_WRITE_META_DOC | JETON_WRITE_META_SUBDEF);
|
||||
|
@@ -33,7 +33,7 @@ class patch_320 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class patch_320 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$sql = 'UPDATE record SET parent_record_id = "1"
|
||||
WHERE parent_record_id != "0"';
|
||||
|
@@ -32,7 +32,7 @@ class patch_320a implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320a implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$sql = 'SELECT * FROM usr WHERE nonce IS NULL';
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class patch_320aa implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320aa implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
if (is_file(__DIR__ . '/../../../config/_GV.php'))
|
||||
require __DIR__ . '/../../../config/_GV.php';
|
||||
|
@@ -32,7 +32,7 @@ class patch_320ab implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320ab implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$sql = 'REPLACE INTO records_rights
|
||||
(SELECT null as id, usr_id, b.sbas_id, record_id, "1" as document
|
||||
|
@@ -32,7 +32,7 @@ class patch_320b implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320b implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$sql = 'UPDATE basusr SET nowatermark=1 WHERE needwatermark=0';
|
||||
$stmt = $appbox->get_connection()->prepare($sql);
|
||||
|
@@ -32,7 +32,7 @@ class patch_320c implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320c implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$sql = 'TRUNCATE metadatas';
|
||||
$stmt = $databox->get_connection()->prepare($sql);
|
||||
|
@@ -32,7 +32,7 @@ class patch_320d implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320d implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
|
||||
$sql = 'SELECT base_id, usr_id FROM order_masters';
|
||||
|
@@ -32,7 +32,7 @@ class patch_320e implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320e implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$sql = 'UPDATE record r, subdef s
|
||||
SET r.mime = s.mime
|
||||
|
@@ -32,7 +32,7 @@ class patch_320f implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320f implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$feeds = array();
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class patch_320h implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_320h implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$sql = 'DELETE FROM basusr WHERE actif = "0"';
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class patch_360 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_360 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$tables = array('StoryWZ', 'ValidationDatas', 'ValidationParticipants', 'ValidationSessions', 'BasketElements', 'Baskets');
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class patch_3602 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_3602 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
try {
|
||||
$sql = 'ALTER TABLE `metadatas` DROP INDEX `unique`';
|
||||
|
@@ -32,7 +32,7 @@ class patch_3603 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_3603 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
|
||||
$sql = 'UPDATE usr SET usr_mail = NULL
|
||||
|
@@ -32,7 +32,7 @@ class patch_3604 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_3604 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
/**
|
||||
* Fail if upgrade has previously failed, no problem
|
||||
|
@@ -34,7 +34,7 @@ class patch_361 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -48,12 +48,12 @@ class patch_361 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$Core = \bootstrap::getCore();
|
||||
|
||||
|
@@ -9,7 +9,6 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Doctrine\ORM\Tools\Pagination\Paginator;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -34,7 +33,7 @@ class patch_370 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -48,12 +47,12 @@ class patch_370 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
$conn = $databox->get_connection();
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class patch_370a3 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_370a3 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$appbox)
|
||||
public function apply(base &$appbox)
|
||||
{
|
||||
$appbox = \appbox::get_instance(\bootstrap::getCore());
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class patch_370a4 implements patchInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_release()
|
||||
public function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ class patch_370a4 implements patchInterface
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function concern()
|
||||
public function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply(base &$databox)
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
|
||||
$sql = 'SELECT id, src FROM metadatas_structure';
|
||||
|
Reference in New Issue
Block a user