-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
helpfulrobot
committed
Dec 25, 2015
1 parent
1976bd3
commit f54615f
Showing
7 changed files
with
182 additions
and
162 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,4 @@ public function WithVisible($relation) | |
return $obj->{$relation}()->OnlyVisible()->exists(); | ||
}); | ||
} | ||
|
||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<?php | ||
|
||
class HelpersTemplateProvider implements TemplateGlobalProvider { | ||
/** | ||
* @return array | ||
*/ | ||
public static function get_template_global_variables() { | ||
return array( | ||
'Repeat', | ||
'Dump' | ||
); | ||
} | ||
class HelpersTemplateProvider implements TemplateGlobalProvider | ||
{ | ||
/** | ||
* @return array | ||
*/ | ||
public static function get_template_global_variables() | ||
{ | ||
return array( | ||
'Repeat', | ||
'Dump' | ||
); | ||
} | ||
|
||
public static function Repeat($times){ | ||
$list = new ArrayList(); | ||
$formatter = new NumberFormatter('en-NZ', NumberFormatter::SPELLOUT); | ||
for($i = 1; $i <= $times; $i++){ | ||
$list->push(array('Num' => $i, 'Word' => ucwords(strtolower($formatter->format($i))))); | ||
} | ||
public static function Repeat($times) | ||
{ | ||
$list = new ArrayList(); | ||
$formatter = new NumberFormatter('en-NZ', NumberFormatter::SPELLOUT); | ||
for ($i = 1; $i <= $times; $i++) { | ||
$list->push(array('Num' => $i, 'Word' => ucwords(strtolower($formatter->format($i))))); | ||
} | ||
|
||
return $list; | ||
} | ||
return $list; | ||
} | ||
|
||
public static function Dump($object){ | ||
dd($object); | ||
} | ||
public static function Dump($object) | ||
{ | ||
dd($object); | ||
} | ||
} |
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
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
Oops, something went wrong.