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
public function nextWorkingDay(Carbon $date) | |
{ | |
$holidays = []; | |
$holidays[] = Carbon::create($date->format('Y'), 1, 1); | |
$holidays[] = Carbon::create($date->format('Y'), 5, 1); | |
$holidays[] = Carbon::create($date->format('Y'), 5, 8); | |
$holidays[] = Carbon::create($date->format('Y'), 7, 14); | |
$holidays[] = Carbon::create($date->format('Y'), 8, 15); | |
$holidays[] = Carbon::create($date->format('Y'), 11, 1); | |
$holidays[] = Carbon::create($date->format('Y'), 11, 11); |
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 App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class NewsletterListController extends Controller | |
{ | |
public function __construct() | |
{ |
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
public function createContactFromString($string) | |
{ | |
$data = [ | |
'contactId' => null, | |
'name' => null, | |
'email' => null, | |
'phone' => null, | |
'mobilePhone' => null, |
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
public function handle() | |
{ | |
$filename = 'import/contacts.csv'; | |
if (Storage::disk('ftp')->exists($filename)) { | |
$content = Storage::disk('ftp')->get($filename); | |
$lines = explode("\n", $content); |
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 App\BlueRock\Telco3cx; | |
use App\TelcoCdrPbx3cxCall; | |
class Cdr | |
{ | |
public function getPbx3cxCall($file, $line, $host) { |
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
function getContacts($data) | |
{ | |
$contacts = []; | |
$data = str_replace(' ', '', $data); | |
$strings = explode(',', $data); | |
foreach ($strings as $string) { |
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
function getContacts($data) | |
{ | |
$contacts = []; | |
$data = str_replace(' ', '', $data); | |
$strings = explode(',', $data); | |
foreach ($strings as $string) { |
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 App\Console\Commands; | |
use App\CustomerContact; | |
use App\Validation; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; | |
class Fix10Command extends Command |
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 App\Console\Commands; | |
use App\Family; | |
use App\Invoice; | |
use App\InvoicePreprod; | |
use App\Mail\BlueRockToolsExportAccountMessage; | |
use App\Term; | |
use Illuminate\Console\Command; |
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 App\BlueRock\Services; | |
class FileableIndexService extends FileableService | |
{ | |
public function breakIndexes() | |
{ | |
$fileable = $this->getFileable(); |