Sample User repository method that return all user names in an array:
/**
* Find user names
*
* @return array
*/
public function findAllNames()
| // Paste in browser console and run | |
| async function deleteStaleBranches(delay=500) { | |
| var stale_branches = document.getElementsByClassName('js-branch-delete-button'); | |
| for (var i = 0; i < stale_branches.length; i++) | |
| { | |
| stale_branches.item(i).click(); | |
| await new Promise(r => setTimeout(r, delay)); | |
| } | |
| } |
| <?php | |
| declare(strict_types=1); | |
| namespace SymfonyLive\Mastermind\Adapters\Database; | |
| use Doctrine\Common\Persistence\ManagerRegistry; | |
| use Doctrine\Common\Persistence\ObjectManager; | |
| use Doctrine\ORM\Tools\SchemaTool; | |
| use RuntimeException; |
| #!/bin/bash | |
| # current Git branch | |
| branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
| # current project name | |
| projectName=$(git config --local remote.origin.url|sed -n 's#.*/\([^.]*\)\.git#\1#p') | |
| # establish master branch name variables | |
| masterBranch=$branch |