@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | 'playgroundcore_entity' => array( |
| 12 | 12 | 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', |
| 13 | 13 | 'cache' => 'array', |
| 14 | - 'paths' => __DIR__ . '/../src/PlaygroundCore/Entity' |
|
| 14 | + 'paths' => __DIR__.'/../src/PlaygroundCore/Entity' |
|
| 15 | 15 | ), |
| 16 | 16 | |
| 17 | 17 | 'orm_default' => array( |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | 'rule_providers' => array( |
| 54 | 54 | 'BjyAuthorize\Provider\Rule\Config' => array( |
| 55 | 55 | 'allow' => array( |
| 56 | - array(array('admin'), 'core', array('dashboard', 'edit')), |
|
| 56 | + array(array('admin'), 'core', array('dashboard', 'edit')), |
|
| 57 | 57 | ), |
| 58 | 58 | ), |
| 59 | 59 | ), |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | 'collections' => array( |
| 83 | 83 | 'core_flags' => array( |
| 84 | 84 | 'assets' => array( |
| 85 | - __DIR__ . '/../view/images/flag/*.png', |
|
| 85 | + __DIR__.'/../view/images/flag/*.png', |
|
| 86 | 86 | ), |
| 87 | 87 | 'options' => array( |
| 88 | 88 | 'move_raw' => true, |
@@ -515,25 +515,25 @@ discard block |
||
| 515 | 515 | 'translation_file_patterns' => array( |
| 516 | 516 | array( |
| 517 | 517 | 'type' => 'phpArray', |
| 518 | - 'base_dir' => __DIR__ . '/../../../../language', |
|
| 518 | + 'base_dir' => __DIR__.'/../../../../language', |
|
| 519 | 519 | 'pattern' => 'routes_%s.php', |
| 520 | 520 | 'text_domain' => 'routes' |
| 521 | 521 | ), |
| 522 | 522 | array( |
| 523 | 523 | 'type' => 'phpArray', |
| 524 | - 'base_dir' => __DIR__ . '/../language', |
|
| 524 | + 'base_dir' => __DIR__.'/../language', |
|
| 525 | 525 | 'pattern' => 'routes_%s.php', |
| 526 | 526 | 'text_domain' => 'routes' |
| 527 | 527 | ), |
| 528 | 528 | array( |
| 529 | 529 | 'type' => 'phpArray', |
| 530 | - 'base_dir' => __DIR__ . '/../../../../language', |
|
| 530 | + 'base_dir' => __DIR__.'/../../../../language', |
|
| 531 | 531 | 'pattern' => '%s.php', |
| 532 | 532 | 'text_domain' => 'playgroundcore' |
| 533 | 533 | ), |
| 534 | 534 | array( |
| 535 | 535 | 'type' => 'phpArray', |
| 536 | - 'base_dir' => __DIR__ . '/../language', |
|
| 536 | + 'base_dir' => __DIR__.'/../language', |
|
| 537 | 537 | 'pattern' => '%s.php', |
| 538 | 538 | 'text_domain' => 'playgroundcore' |
| 539 | 539 | ), |
@@ -542,8 +542,8 @@ discard block |
||
| 542 | 542 | |
| 543 | 543 | 'view_manager' => array( |
| 544 | 544 | 'template_path_stack' => array( |
| 545 | - __DIR__ . '/../view/admin', |
|
| 546 | - __DIR__ . '/../view/frontend', |
|
| 545 | + __DIR__.'/../view/admin', |
|
| 546 | + __DIR__.'/../view/frontend', |
|
| 547 | 547 | ), |
| 548 | 548 | ), |
| 549 | 549 | |
@@ -139,19 +139,19 @@ discard block |
||
| 139 | 139 | ), |
| 140 | 140 | ), |
| 141 | 141 | ), |
| 142 | - // Give the possibility to call Cron from browser |
|
| 143 | - 'cron' => array( |
|
| 144 | - 'type' => 'Literal', |
|
| 145 | - 'options' => array( |
|
| 146 | - 'route' => 'cron', |
|
| 147 | - 'defaults' => array( |
|
| 148 | - 'controller' => 'playgroundcore_console', |
|
| 149 | - 'action' => 'cron' |
|
| 150 | - ), |
|
| 151 | - ), |
|
| 152 | - ), |
|
| 153 | - ), |
|
| 154 | - ), |
|
| 142 | + // Give the possibility to call Cron from browser |
|
| 143 | + 'cron' => array( |
|
| 144 | + 'type' => 'Literal', |
|
| 145 | + 'options' => array( |
|
| 146 | + 'route' => 'cron', |
|
| 147 | + 'defaults' => array( |
|
| 148 | + 'controller' => 'playgroundcore_console', |
|
| 149 | + 'action' => 'cron' |
|
| 150 | + ), |
|
| 151 | + ), |
|
| 152 | + ), |
|
| 153 | + ), |
|
| 154 | + ), |
|
| 155 | 155 | 'admin' => array( |
| 156 | 156 | 'type' => 'Literal', |
| 157 | 157 | 'priority' => -1000, |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | 'list' => array( |
| 449 | 449 | 'type' => 'Segment', |
| 450 | 450 | 'options' => array( |
| 451 | - 'route' => '/list', |
|
| 451 | + 'route' => '/list', |
|
| 452 | 452 | 'defaults' => array( |
| 453 | 453 | 'controller' => 'playgroundcore_admin_website', |
| 454 | 454 | 'action' => 'list', |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | 'edit-active' => array( |
| 460 | 460 | 'type' => 'Segment', |
| 461 | 461 | 'options' => array( |
| 462 | - 'route' => '/edit-active/[:websiteId]', |
|
| 462 | + 'route' => '/edit-active/[:websiteId]', |
|
| 463 | 463 | 'defaults' => array( |
| 464 | 464 | 'controller' => 'playgroundcore_admin_website', |
| 465 | 465 | 'action' => 'editactive', |
@@ -566,6 +566,6 @@ discard block |
||
| 566 | 566 | 'invokables' => array( |
| 567 | 567 | 'NotInBlacklist' => 'PlaygroundCore\Validator\Blacklist', |
| 568 | 568 | 'InMailDomainList' => 'PlaygroundCore\Validator\MailDomain', |
| 569 | - ), |
|
| 569 | + ), |
|
| 570 | 570 | ), |
| 571 | 571 | ); |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | * NL-Revision: 06 Nov 2015 *** G.Besson *** |
| 12 | 12 | */ |
| 13 | 13 | return array( |
| 14 | - // PlaygroundCore\Validator\Blacklist |
|
| 15 | - "You're not allowed to use this word" => "Het is niet toegestaan om dit woord te gebruiken", |
|
| 14 | + // PlaygroundCore\Validator\Blacklist |
|
| 15 | + "You're not allowed to use this word" => "Het is niet toegestaan om dit woord te gebruiken", |
|
| 16 | 16 | |
| 17 | 17 | // Zend\I18n\Validator\Alnum |
| 18 | 18 | "Invalid type given. String, integer or float expected" => "Ongeldig type opgegeven, waarde moet een float, string of integer zijn", |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | * This method will merge videos in .mpg format with exactly the same codec and codec parameters : |
| 172 | 172 | * http://trac.ffmpeg.org/wiki/Concatenate |
| 173 | 173 | * @param array $videos |
| 174 | - * @return string |
|
| 174 | + * @return boolean |
|
| 175 | 175 | */ |
| 176 | 176 | public function mergeMpgVideos($videos = false, $target = false) |
| 177 | 177 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | ->addPreInputCommand('-pattern_type', 'glob') |
| 77 | 77 | ->addCommand('-i', $path) |
| 78 | 78 | ->addCommand('-c:v', 'libx264') |
| 79 | - ->addCommand('-vf', 'fps='. $fps) |
|
| 79 | + ->addCommand('-vf', 'fps='.$fps) |
|
| 80 | 80 | ->addCommand('-pix_fmt', 'yuv420p') |
| 81 | 81 | ->setOutputPath($target) |
| 82 | 82 | ->execute(); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | ->addPreInputCommand('-pattern_type', 'glob') |
| 108 | 108 | ->addCommand('-i', $path) |
| 109 | 109 | ->addCommand('-vcodec', 'qtrle') |
| 110 | - ->addCommand('-vf', 'fps='. $fps) |
|
| 110 | + ->addCommand('-vf', 'fps='.$fps) |
|
| 111 | 111 | ->setOutputPath($target) |
| 112 | 112 | ->execute(); |
| 113 | 113 | } catch (FfmpegProcessOutputException $e) { |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $this->serviceLocator->setShared('playgroundcore_phpvideotoolkit', false); |
| 181 | 181 | $this->serviceLocator->get('playgroundcore_phpvideotoolkit') |
| 182 | 182 | ->addPreInputCommand('-y') |
| 183 | - ->addCommand('-i', 'concat:' . implode('|', $videos)) |
|
| 183 | + ->addCommand('-i', 'concat:'.implode('|', $videos)) |
|
| 184 | 184 | ->addCommand('-c', 'copy') |
| 185 | 185 | ->addCommand('-bsf:a', 'aac_adtstoasc') |
| 186 | 186 | ->addCommand('-bufsize', '1835k') |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | foreach ($layer as $k => $l) { |
| 296 | 296 | $ffmpeg->addCommand('-i', $l, true); |
| 297 | 297 | $overlay .= 'overlay=format=rgb'; |
| 298 | - if ($k<count($layer)-1) { |
|
| 298 | + if ($k < count($layer) - 1) { |
|
| 299 | 299 | $overlay .= ','; |
| 300 | 300 | } |
| 301 | 301 | } |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | $ffmpeg->addCommand('-i', $s, true); |
| 397 | 397 | $concat .= '['.$k.':0]'; |
| 398 | 398 | } |
| 399 | - $concat .= 'concat=n='. count($sounds) .':v=0:a=1[out]'; |
|
| 399 | + $concat .= 'concat=n='.count($sounds).':v=0:a=1[out]'; |
|
| 400 | 400 | |
| 401 | 401 | $ffmpeg->addCommand('-filter_complex', $concat) |
| 402 | 402 | ->addCommand('-map', '[out]') |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | $ffmpeg->addCommand('-i', $s, true); |
| 430 | 430 | $merge .= '['.$k.':a]'; |
| 431 | 431 | } |
| 432 | - $merge .= 'amerge=inputs='. count($sounds) .'[aout]'; |
|
| 432 | + $merge .= 'amerge=inputs='.count($sounds).'[aout]'; |
|
| 433 | 433 | |
| 434 | 434 | $ffmpeg->addCommand('-filter_complex', $merge) |
| 435 | 435 | ->addCommand('-map', '[aout]') |
@@ -450,8 +450,8 @@ discard block |
||
| 450 | 450 | { |
| 451 | 451 | $this->serviceLocator->setShared('playgroundcore_phpvideotoolkit', false); |
| 452 | 452 | |
| 453 | - $text = "fontfile=$font:text='". $message."':fontsize=". |
|
| 454 | - $fontSize .":fontcolor=" . $fontColor . ":x=".$x.":y=".$y; |
|
| 453 | + $text = "fontfile=$font:text='".$message."':fontsize=". |
|
| 454 | + $fontSize.":fontcolor=".$fontColor.":x=".$x.":y=".$y; |
|
| 455 | 455 | |
| 456 | 456 | $this->serviceLocator->get('playgroundcore_phpvideotoolkit') |
| 457 | 457 | ->addPreInputCommand('-y') |
@@ -498,14 +498,14 @@ discard block |
||
| 498 | 498 | } |
| 499 | 499 | $this->serviceLocator->setShared('playgroundcore_phpvideotoolkit', false); |
| 500 | 500 | |
| 501 | - $i=1; |
|
| 501 | + $i = 1; |
|
| 502 | 502 | foreach ($frames as $frame) { |
| 503 | 503 | $this->serviceLocator->get('playgroundcore_phpvideotoolkit') |
| 504 | 504 | ->addPreInputCommand('-y') |
| 505 | 505 | ->addCommand('-i', $source) |
| 506 | 506 | ->addCommand('-an') |
| 507 | - ->addCommand('-vf', 'select=between(n\,' . $frame[0] . '\,' . $frame[1] . '),setpts=PTS-STARTPTS') |
|
| 508 | - ->setOutputPath($target . sprintf('s%02d', $i) . '.mov') |
|
| 507 | + ->addCommand('-vf', 'select=between(n\,'.$frame[0].'\,'.$frame[1].'),setpts=PTS-STARTPTS') |
|
| 508 | + ->setOutputPath($target.sprintf('s%02d', $i).'.mov') |
|
| 509 | 509 | ->execute(); |
| 510 | 510 | $i++; |
| 511 | 511 | } |
@@ -203,10 +203,10 @@ discard block |
||
| 203 | 203 | $this->serviceLocator->setShared('playgroundcore_phpvideotoolkit', false); |
| 204 | 204 | |
| 205 | 205 | $this->serviceLocator->get('playgroundcore_phpvideotoolkit') |
| 206 | - ->addCommand('-i', $videoSource) |
|
| 207 | - ->addCommand('-i', $audioSource, true) |
|
| 208 | - ->setOutputPath($target) |
|
| 209 | - ->execute(); |
|
| 206 | + ->addCommand('-i', $videoSource) |
|
| 207 | + ->addCommand('-i', $audioSource, true) |
|
| 208 | + ->setOutputPath($target) |
|
| 209 | + ->execute(); |
|
| 210 | 210 | return $target; |
| 211 | 211 | } |
| 212 | 212 | |
@@ -374,10 +374,10 @@ discard block |
||
| 374 | 374 | } |
| 375 | 375 | |
| 376 | 376 | /** |
| 377 | - * This method concatenate an array of sounds |
|
| 378 | - * ffmpeg -y -i in-1.wav -i in-2.wav -i in-3.wav |
|
| 379 | - * -filter_complex '[0:0][1:0][2:0]concat=n=3:v=0:a=1[out]' -map '[out]' out.wav |
|
| 380 | - */ |
|
| 377 | + * This method concatenate an array of sounds |
|
| 378 | + * ffmpeg -y -i in-1.wav -i in-2.wav -i in-3.wav |
|
| 379 | + * -filter_complex '[0:0][1:0][2:0]concat=n=3:v=0:a=1[out]' -map '[out]' out.wav |
|
| 380 | + */ |
|
| 381 | 381 | public function concatenateSounds($sounds, $target) |
| 382 | 382 | { |
| 383 | 383 | if (empty($sounds)) { |
@@ -407,10 +407,10 @@ discard block |
||
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
| 410 | - * This method merge an array of sounds |
|
| 411 | - * ffmpeg -i in-1.wav -i in-2.wav -i in-3.wav |
|
| 412 | - * -filter_complex "[0:a][1:a][2:a]amerge=inputs=3[aout]" -map "[aout]" -ac 2 out.wav |
|
| 413 | - */ |
|
| 410 | + * This method merge an array of sounds |
|
| 411 | + * ffmpeg -i in-1.wav -i in-2.wav -i in-3.wav |
|
| 412 | + * -filter_complex "[0:a][1:a][2:a]amerge=inputs=3[aout]" -map "[aout]" -ac 2 out.wav |
|
| 413 | + */ |
|
| 414 | 414 | public function mergeSounds($sounds, $target) |
| 415 | 415 | { |
| 416 | 416 | if (empty($sounds)) { |
@@ -464,9 +464,9 @@ discard block |
||
| 464 | 464 | } |
| 465 | 465 | |
| 466 | 466 | /** |
| 467 | - * this method extracts an image form a video at the $time second in the video. |
|
| 468 | - * ffmpeg -ss 00:00:04 -i video.mp4 -vframes 1 out.png |
|
| 469 | - */ |
|
| 467 | + * this method extracts an image form a video at the $time second in the video. |
|
| 468 | + * ffmpeg -ss 00:00:04 -i video.mp4 -vframes 1 out.png |
|
| 469 | + */ |
|
| 470 | 470 | public function extractImage($source, $target, $start = '00:00:01', $frames = 1) |
| 471 | 471 | { |
| 472 | 472 | $this->serviceLocator->setShared('playgroundcore_phpvideotoolkit', false); |
@@ -487,10 +487,10 @@ discard block |
||
| 487 | 487 | } |
| 488 | 488 | |
| 489 | 489 | /** |
| 490 | - * this method splits a video into n chunks defined by the frames array. |
|
| 491 | - * $frames = array(array(0, 12), array(13, 110), array(111, 200)); |
|
| 492 | - * ffmpeg -i quickns.mov -an -vf "select=between(n\,110\,200),setpts=PTS-STARTPTS" grg.mov |
|
| 493 | - */ |
|
| 490 | + * this method splits a video into n chunks defined by the frames array. |
|
| 491 | + * $frames = array(array(0, 12), array(13, 110), array(111, 200)); |
|
| 492 | + * ffmpeg -i quickns.mov -an -vf "select=between(n\,110\,200),setpts=PTS-STARTPTS" grg.mov |
|
| 493 | + */ |
|
| 494 | 494 | public function splitVideo($source, $frames, $target) |
| 495 | 495 | { |
| 496 | 496 | if (empty($frames)) { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * setLocaleMapper |
| 50 | 50 | * @param LocaleMapper $localeMapper |
| 51 | 51 | * |
| 52 | - * @return PlaygroundCore\Entity\Locale Locale |
|
| 52 | + * @return Locale Locale |
|
| 53 | 53 | */ |
| 54 | 54 | public function setLocaleMapper($localeMapper) |
| 55 | 55 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * setOptions |
| 63 | 63 | * @param ModuleOptions $options |
| 64 | 64 | * |
| 65 | - * @return PlaygroundCore\Service\Locale $this |
|
| 65 | + * @return Locale $this |
|
| 66 | 66 | */ |
| 67 | 67 | public function setOptions(ModuleOptions $options) |
| 68 | 68 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * setWebsiteMapper |
| 50 | 50 | * @param Mapper/Website $websiteMapper |
| 51 | 51 | * |
| 52 | - * @return PlaygroundCore\Entity\WebsiteMapper websiteMapper |
|
| 52 | + * @return Website websiteMapper |
|
| 53 | 53 | */ |
| 54 | 54 | public function setWebsiteMapper($websiteMapper) |
| 55 | 55 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * setOptions |
| 63 | 63 | * @param ModuleOptions $options |
| 64 | 64 | * |
| 65 | - * @return PlaygroundCore\Service\Website $this |
|
| 65 | + * @return Website $this |
|
| 66 | 66 | */ |
| 67 | 67 | public function setOptions(ModuleOptions $options) |
| 68 | 68 | { |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | class CountryFactory implements FactoryInterface |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param ServiceLocatorInterface $locator |
|
| 12 | - * @return \PlaygroundCore\Service\Country |
|
| 13 | - */ |
|
| 11 | + * @param ServiceLocatorInterface $locator |
|
| 12 | + * @return \PlaygroundCore\Service\Country |
|
| 13 | + */ |
|
| 14 | 14 | public function createService(ServiceLocatorInterface $locator) |
| 15 | 15 | { |
| 16 | 16 | $service = new Country($locator); |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | class FfmpegFactory implements FactoryInterface |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param ServiceLocatorInterface $locator |
|
| 12 | - * @return \PlaygroundCore\Service\Ffmpeg |
|
| 13 | - */ |
|
| 11 | + * @param ServiceLocatorInterface $locator |
|
| 12 | + * @return \PlaygroundCore\Service\Ffmpeg |
|
| 13 | + */ |
|
| 14 | 14 | public function createService(ServiceLocatorInterface $locator) |
| 15 | 15 | { |
| 16 | 16 | $service = new Ffmpeg($locator); |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | class ShortenUrlFactory implements FactoryInterface |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param ServiceLocatorInterface $locator |
|
| 12 | - * @return \PlaygroundCore\Service\ShortenUrl |
|
| 13 | - */ |
|
| 11 | + * @param ServiceLocatorInterface $locator |
|
| 12 | + * @return \PlaygroundCore\Service\ShortenUrl |
|
| 13 | + */ |
|
| 14 | 14 | public function createService(ServiceLocatorInterface $locator) |
| 15 | 15 | { |
| 16 | 16 | $service = new ShortenUrl($locator); |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | class FormgenFactory implements FactoryInterface |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param ServiceLocatorInterface $locator |
|
| 12 | - * @return \PlaygroundCore\Service\Formgen |
|
| 13 | - */ |
|
| 11 | + * @param ServiceLocatorInterface $locator |
|
| 12 | + * @return \PlaygroundCore\Service\Formgen |
|
| 13 | + */ |
|
| 14 | 14 | public function createService(ServiceLocatorInterface $locator) |
| 15 | 15 | { |
| 16 | 16 | $service = new Formgen($locator); |