Skip to content

Commit 34b9caf

Browse files
committed
Merge pull request #3 from moxie-leean/updates
Update dependencies
2 parents b1c055a + f97c82f commit 34b9caf

File tree

5 files changed

+27
-28
lines changed

5 files changed

+27
-28
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "moxie-leean/cpt",
2+
"name": "moxie-lean/wp-cpt",
33
"description": "Craate custom post types more easily",
44
"keywords": ["wordpress", "cpt", "post types"],
5-
"homepage": "https://github.com/moxie-leean/cpt",
5+
"homepage": "https://github.com/moxie-leean/wp-cpt",
66
"type": "library",
77
"license": "MIT",
88
"authors": [
@@ -16,12 +16,12 @@
1616
},
1717
"autoload": {
1818
"psr-4": {
19-
"Leean\\": "src/"
19+
"Lean\\": "src/"
2020
}
2121
},
2222
"require-dev": {
2323
"squizlabs/php_codesniffer": "2.*",
24-
"wp-coding-standards/wpcs": "dev-master"
24+
"wp-coding-standards/wpcs": "0.9.0"
2525
},
2626
"scripts": {
2727
"installSniffer": [
@@ -30,7 +30,7 @@
3030
"./vendor/bin/phpcs --config-set show_progress 0",
3131
"./vendor/bin/phpcs --config-set colors 1"
3232
],
33-
"post-install-cmd": [ "@installSnifferj" ],
33+
"post-install-cmd": [ "@installSniffer" ],
3434
"post-update-cmd": [ "@installSniffer" ],
3535
"test": [
3636
"phpcs src/*.php"

composer.lock

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

licence

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Leean
3+
Copyright (c) 2016 Lean
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Custom Post Types](https://github.com/moxie-leean/cpt)
1+
# [Custom Post Types](https://github.com/moxie-leean/wp-cpt)
22

33
> This library will allow you to create more easily custom post types for wordpress without too much effort.
44
@@ -8,18 +8,18 @@ The easiest way to install this package is by using composer from your
88
terminal:
99

1010
```bash
11-
composer require moxie-leean/cpt
11+
composer require moxie-lean/cpt
1212
```
1313

1414
Or by adding the following lines on your `composer.json` file
1515

1616
```json
1717
"require": {
18-
"moxie-leean/cpt": "dev-master"
18+
"moxie-lean/cpt": "dev-master"
1919
}
2020
```
2121

22-
This will download the file from the [packagist site](https://.org/packages/moxie-leean/cpt)
22+
This will download the file from the [packagist site](https://.org/packages/moxie-lean/cpt)
2323
and the latest version located on master branch of the repository.
2424

2525
After that you can need to include the `autoload.php` file in order to
@@ -35,7 +35,7 @@ might need to add the function in the `init` action as an example:
3535

3636
```php
3737
add_action( 'init', function() {
38-
$testimonials = new \Leean\Cpt([
38+
$testimonials = new \Lean\Cpt([
3939
'singular' => 'Testimonial',
4040
'plural' => 'Testimonials',
4141
'post_type' => 'testimonials',

src/Cpt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Leean;
1+
<?php namespace Lean;
22
/**
33
* Class to crate new CPT files wiout to much repeated code.
44
*
@@ -290,7 +290,7 @@ private function interpolate( $msg = '', $arg = '' ) {
290290
*/
291291
private function label( $str = '' ) {
292292
if ( is_string( $str ) && ! empty( $str ) ) {
293-
return esc_html__( $str , 'Leean' );
293+
return esc_html__( $str , 'Lean' );
294294
} else {
295295
return '';
296296
}

0 commit comments

Comments
 (0)