- Projects must not depend on dependencies with known security issues
- Database queries should use parameter binding
- PHP debug statements found
- eval() should never be used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Core\Domain\Time; | |
use DateTimeImmutable; | |
use DateTimeZone; | |
use Generator; | |
use Iterator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle; | |
use AppBundle\DependencyInjection\Compiler\SecureApplicationPass; | |
use Symfony\Component\DependencyInjection\Compiler\PassConfig | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
class AppBundle extends Bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Original: http://steve-jansen.github.io/blog/2014/11/20/how-to-use-jenkins-to-monitor-cron-jobs/ | |
# example cron script to post logs to Jenkins | |
# exit on error | |
set -e | |
log=`mktemp tmp.XXX` | |
timer=`date +"%s"` | |
jenkins_job=my_monitoring_job |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Incenteev\MailerBundle\Mailer; | |
class TwigRenderer implements RendererInterface | |
{ | |
private $twig; | |
private $styleInliner; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Context; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Testwork\Tester\Result\TestResult; | |
use Behat\Mink\Driver\Selenium2Driver; | |
class ScreenshotContext extends RawMinkContext | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.factory('Authentication', function($http, $rootScope, $location, $timeout){ | |
var Auth = {}; | |
Auth.unsetUser = function() { | |
$rootScope.user = {}; | |
}; | |
Auth.setUser = function(data) { | |
$rootScope.user = data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\SecurityBundle\Role; | |
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; | |
use Symfony\Component\Security\Core\Role\RoleHierarchy; | |
use Acme\SecurityBundle\Entity\RoleRepository; | |
class DynamicRoleHierarchy implements RoleHierarchyInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Twilio; | |
use GuzzleHttp\Client as HttpClient; | |
use GuzzleHttp\Collection; | |
use GuzzleHttp\Command\Guzzle\GuzzleClient; | |
use GuzzleHttp\Command\Guzzle\Description; | |
use GuzzleHttp\Command\Model; | |
use GuzzleHttp\Subscriber\Retry\RetrySubscriber; |
NewerOlder